Bug: Script Editor resets code when re-entering a Cluster (Rhino 9)
Description:
I’ve encountered a severe persistence issue with the new Script Editor in Rhino 9 WIP.
The C# script content is being wiped and reset to the default template (a = null;) not only during copy-paste actions but also simply by re-entering a Cluster.
Steps to Reproduce:
- Create a C# Script component inside a Cluster.
- Write custom code and ensure it compiles (e.g., using
ref object A). - Save and Close the Cluster.
- Double-click to enter the Cluster again.
- Open the C# Script Editor.
Actual Behavior: The previously written code is gone, replaced by the boilerplate C# template. It seems the component fails to serialize/save the script source properly when it’s nested inside a Cluster environment.
Expected Behavior: The script content should be persistent and remain unchanged regardless of entering/leaving the Cluster.
Environment:
- Rhino 9 WIP
- Grasshopper 1.0