Hiding some advanced, not ready for prime time features unless EnableExperimentalFeatures is set and true in the preferences.

This commit is contained in:
Markus Lampert
2017-11-27 18:53:18 -08:00
committed by Yorik van Havre
parent a84a0ce431
commit cd1a4e8b4c
3 changed files with 26 additions and 10 deletions

View File

@@ -45,6 +45,9 @@ class PathPreferences:
GeometryTolerance = "GeometryTolerance"
LibAreaCurveAccuracy = "LibAreaCurveAccuarcy"
EnableExperimentalFeatures = "EnableExperimentalFeatures"
@classmethod
def preferences(cls):
return FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/Path")
@@ -177,3 +180,8 @@ class PathPreferences:
def setDefaultStockTemplate(cls, template):
cls.preferences().SetString(cls.DefaultStockTemplate, template)
@classmethod
def experimentalFeaturesEnabled(cls):
return cls.preferences().GetBool(cls.EnableExperimentalFeatures, False)