diff --git a/src/RhinoInside.Revit.GH/Types/ObjectStyles/Category.cs b/src/RhinoInside.Revit.GH/Types/ObjectStyles/Category.cs index e22163aea..be65cf0a1 100644 --- a/src/RhinoInside.Revit.GH/Types/ObjectStyles/Category.cs +++ b/src/RhinoInside.Revit.GH/Types/ObjectStyles/Category.cs @@ -503,7 +503,7 @@ internal ModelContent ToModelContent(IDictionary i // Material { - attributes.Material = Material?.ToModelContent(idMap) as ModelRenderMaterial ?? ModelRenderMaterial.Unset; + attributes.Material = Material?.ToModelContent(idMap) as ModelRenderMaterial; } // Some hardcoded tweaks… diff --git a/src/RhinoInside.Revit/Rhinoceros.cs b/src/RhinoInside.Revit/Rhinoceros.cs index 595da1f70..40aceffba 100755 --- a/src/RhinoInside.Revit/Rhinoceros.cs +++ b/src/RhinoInside.Revit/Rhinoceros.cs @@ -40,6 +40,10 @@ internal static bool InitEto(Assembly assembly) if (Eto.Forms.Application.Instance is null) new Eto.Forms.Application(Eto.Platforms.Wpf).Attach(); +#if RHINO_8 + Eto.Wpf.Forms.Controls.TextBoxHandler.EnableNoGCRegionDefault = false; +#endif + return true; } @@ -244,7 +248,7 @@ internal static bool Run() return active; } - #endregion +#endregion #region Guests class GuestInfo