From c4bd67724c492fa66a9e15bb480521dcc63f6c46 Mon Sep 17 00:00:00 2001 From: sliptonic Date: Mon, 7 May 2018 09:37:59 -0500 Subject: [PATCH] Set Path Center. Depends on mlampert's rotation vis --- src/Mod/Path/PathScripts/PathDressupAxisMap.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Mod/Path/PathScripts/PathDressupAxisMap.py b/src/Mod/Path/PathScripts/PathDressupAxisMap.py index 3cfe2ef56c..508d7db313 100644 --- a/src/Mod/Path/PathScripts/PathDressupAxisMap.py +++ b/src/Mod/Path/PathScripts/PathDressupAxisMap.py @@ -73,7 +73,7 @@ class ObjectDressup: def _stripArcs(self, path, d): '''converts all G2/G3 commands into G1 commands''' newcommandlist = [] - currLocation = {} + currLocation = {'X':0,'Y':0,'Z':0} for p in path: if p.Name in arccommands: @@ -131,6 +131,7 @@ class ObjectDressup: path = Path.Path(newcommandlist) obj.Path = path + obj.Path.Center = FreeCAD.Vector(0, 0, 0-obj.radius.Value) class ViewProviderDressup: