-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1255 from mcneel/kike/1.x
Enabled UI plugins on the Player.
- Loading branch information
Showing
4 changed files
with
258 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using Grasshopper.Kernel; | ||
|
||
namespace Grasshopper | ||
{ | ||
internal static class GH_DocumentExtension | ||
{ | ||
public static bool KeepOpen(this GH_Document document) | ||
{ | ||
#if RHINO_8 | ||
return document.Properties.KeepOpen; | ||
#else | ||
return false; | ||
#endif | ||
} | ||
|
||
public static Rhino.RhinoDoc RhinoDocument(this GH_Document document) | ||
{ | ||
#if RHINO_8 | ||
return document.RhinoDocument; | ||
#else | ||
return Rhino.RhinoDoc.ActiveDoc; | ||
#endif | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.