From e92f3153796d58890f1aefd7159ee6a94cfa7c3d Mon Sep 17 00:00:00 2001 From: Markus Lampert Date: Mon, 2 Jan 2017 17:32:48 -0800 Subject: [PATCH] Changed default values for tags and disabled old popup menu. --- src/Mod/Path/InitGui.py | 2 +- src/Mod/Path/PathScripts/PathDressupHoldingTags.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Mod/Path/InitGui.py b/src/Mod/Path/InitGui.py index e046eb542..b5f020413 100644 --- a/src/Mod/Path/InitGui.py +++ b/src/Mod/Path/InitGui.py @@ -136,7 +136,7 @@ class PathWorkbench (Workbench): if FreeCADGui.Selection.getSelection()[0].isDerivedFrom("Path::Feature"): self.appendContextMenu("", ["Path_Inspect"]) if "Profile" or "Contour" in FreeCADGui.Selection.getSelection()[0].Name: - self.appendContextMenu("", ["Add_Tag"]) + #self.appendContextMenu("", ["Add_Tag"]) self.appendContextMenu("", ["Set_StartPoint"]) self.appendContextMenu("", ["Set_EndPoint"]) if "Remote" in FreeCADGui.Selection.getSelection()[0].Name: diff --git a/src/Mod/Path/PathScripts/PathDressupHoldingTags.py b/src/Mod/Path/PathScripts/PathDressupHoldingTags.py index f4f3276f1..d05292806 100644 --- a/src/Mod/Path/PathScripts/PathDressupHoldingTags.py +++ b/src/Mod/Path/PathScripts/PathDressupHoldingTags.py @@ -542,14 +542,14 @@ class PathData: def defaultTagHeight(self): if hasattr(self.obj, 'Base') and hasattr(self.obj.Base, 'StartDepth') and hasattr(self.obj.Base, 'FinalDepth'): - return (self.obj.Base.StartDepth - self.obj.Base.FinalDepth).Value - return self.maxZ - self.minZ + return (self.obj.Base.StartDepth - self.obj.Base.FinalDepth).Value / 2 + return (self.maxZ - self.minZ) / 2 def defaultTagWidth(self): return self.shortestAndLongestPathEdge()[1].Length / 10 def defaultTagAngle(self): - return 90 + return 45 def sortedTags(self, tags): ordered = []