Only setting Path.Area curve accuracy if it is not, and also set it when Preferences get saved.
This commit is contained in:
@@ -137,7 +137,9 @@ class PathWorkbench (Workbench):
|
||||
|
||||
self.dressupcmds = dressupcmdlist
|
||||
|
||||
Path.Area.setDefaultParams(Accuracy = PathPreferences.defaultLibAreaCurveAccuracy())
|
||||
curveAccuracy = PathPreferences.defaultLibAreaCurveAccuracy()
|
||||
if curveAccuracy:
|
||||
Path.Area.setDefaultParams(curveAccuracy)
|
||||
|
||||
Log('Loading Path workbench... done\n')
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
|
||||
import FreeCAD
|
||||
import FreeCADGui
|
||||
import Path
|
||||
import PathScripts.PathLog as PathLog
|
||||
import PathScripts.PathStock as PathStock
|
||||
import json
|
||||
@@ -53,6 +54,9 @@ class JobPreferencesPage:
|
||||
curveAccuracy = Units.Quantity(self.form.curveAccuracy.text())
|
||||
PathPreferences.setJobDefaults(filePath, jobTemplate, geometryTolerance, curveAccuracy)
|
||||
|
||||
if curveAccuracy:
|
||||
Path.Area.setDefaultParams(Accuracy = curveAccuracy)
|
||||
|
||||
processor = str(self.form.defaultPostProcessor.currentText())
|
||||
args = str(self.form.defaultPostProcessorArgs.text())
|
||||
blacklist = []
|
||||
|
||||
Reference in New Issue
Block a user