Hello,
I think I have found a bug under Rhino 6 OSX, which is probably related to Eto forms.
This is a sample code (a very simple custom material, but the same with custom environment crashes too)
To trigger the bug:
- Go to Material Panel
- Add a new “My Material” material
- On the menu of the panels view (top right corner) switch to “Show properties panel”
- crash…
namespace myNamespace
{
[Guid("172AF225-1231-11A8-8D66-9B15ECE3E52F")]
[CustomRenderContent(IsPrivate = false)]
public class MyMaterial : RenderMaterial
{
public override string TypeName => "My Material";
public override string TypeDescription => "My Material";
public static List<Rhino.UI.Controls.EtoCollapsibleSection> _sections = new List<Rhino.UI.Controls.EtoCollapsibleSection>();
protected override void OnAddUserInterfaceSections()
{
_sections.Clear();
_sections.Add(new SectNew());
foreach (var section in _sections)
AddUserInterfaceSection(section);
}
public MyMaterial()
{
ModifyRenderContentStyles(RenderContentStyles.None, RenderContentStyles.TextureSummary);
}
public class SectNew : Rhino.UI.Controls.EtoCollapsibleSection
{
public override Rhino.UI.LocalizeStringPair Caption => new Rhino.UI.LocalizeStringPair("title", "title");
public override int SectionHeight => 100;
};
};
};
Márton