File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public override bool hidden
2626
2727 public override bool enabled
2828 {
29- get { return true ; }
29+ get { return Experimental . experimentalFeaturesEnabled && ProBuilderEditor . instance != null ; }
3030 }
3131
3232 protected override ActionResult PerformActionImplementation ( )
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ public override bool hidden
3434
3535 public override bool enabled
3636 {
37- get { return true ; }
37+ get { return ProBuilderEditor . instance != null ; }
3838 }
3939
4040 static bool CanCreateNewPolyShape ( )
Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ sealed class NewShapeToggle : MenuToolToggle
1818 public override TooltipContent tooltip { get { return s_Tooltip ; } }
1919 public override string menuTitle { get { return "New Shape" ; } }
2020 public override int toolbarPriority { get { return 0 ; } }
21- protected override bool hasFileMenuEntry { get { return true ; } }
2221
2322 static readonly TooltipContent s_Tooltip = new TooltipContent
2423 (
@@ -27,8 +26,9 @@ sealed class NewShapeToggle : MenuToolToggle
2726 keyCommandSuper , keyCommandShift , 'K'
2827 ) ;
2928
30- public override bool enabled {
31- get { return true ; }
29+ public override bool enabled
30+ {
31+ get { return ProBuilderEditor . instance != null ; }
3232 }
3333
3434 protected override ActionResult PerformActionImplementation ( )
You can’t perform that action at this time.
0 commit comments