Hiding some advanced, not ready for prime time features unless EnableExperimentalFeatures is set and true in the preferences.
This commit is contained in:
committed by
Yorik van Havre
parent
a84a0ce431
commit
cd1a4e8b4c
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user