diff --git a/src/Mod/Path/InitGui.py b/src/Mod/Path/InitGui.py index e046eb5421..b5f020413a 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 f4f3276f16..d052928062 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 = []