Skip to content

Commit

Permalink
Merge pull request #1135 from mcneel/1.22
Browse files Browse the repository at this point in the history
Removed `ModelRenderMaterial.Unset` reference.
  • Loading branch information
kike-garbo authored Jul 2, 2024
2 parents b7c7b36 + 81321a8 commit dece6aa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/RhinoInside.Revit.GH/Types/ObjectStyles/Category.cs
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ internal ModelContent ToModelContent(IDictionary<ARDB.ElementId, ModelContent> i

// Material
{
attributes.Material = Material?.ToModelContent(idMap) as ModelRenderMaterial ?? ModelRenderMaterial.Unset;
attributes.Material = Material?.ToModelContent(idMap) as ModelRenderMaterial;
}

// Some hardcoded tweaks…
Expand Down
6 changes: 5 additions & 1 deletion src/RhinoInside.Revit/Rhinoceros.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -244,7 +248,7 @@ internal static bool Run()

return active;
}
#endregion
#endregion

#region Guests
class GuestInfo
Expand Down

0 comments on commit dece6aa

Please sign in to comment.