Only setting Path.Area curve accuracy if it is not, and also set it when Preferences get saved.

This commit is contained in:
Markus Lampert
2018-05-01 21:19:00 -07:00
committed by wmayer
parent d4fa4ec21e
commit 78b72c6d4e
2 changed files with 7 additions and 1 deletions

View File

@@ -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')

View File

@@ -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 = []