diff --git a/src/Mod/Path/PathScripts/PathDressupDogbone.py b/src/Mod/Path/PathScripts/PathDressupDogbone.py index 2d76216b56..811896e284 100644 --- a/src/Mod/Path/PathScripts/PathDressupDogbone.py +++ b/src/Mod/Path/PathScripts/PathDressupDogbone.py @@ -798,7 +798,7 @@ class ObjectDressup: side = Side.Right if hasattr(obj.Base, 'Side') and obj.Base.Side == 'Inside': side = Side.Left - if obj.Base.Direction == 'CCW': + if hasattr(obj.Base, 'Directin') and obj.Base.Direction == 'CCW': side = Side.oppositeOf(side) obj.Side = side @@ -1044,9 +1044,6 @@ class CommandDressupDogbone: if not baseObject.isDerivedFrom("Path::Feature"): FreeCAD.Console.PrintError(translate("Path_DressupDogbone", "The selected object is not a path\n")) return - if not hasattr(baseObject, "Side") and not hasattr(baseObject, 'Direction'): - FreeCAD.Console.PrintError(translate("Path_DressupDogbone", "Please select a Profile/Contour or Dogbone Dressup object")) - return # everything ok! FreeCAD.ActiveDocument.openTransaction(translate("Path_DressupDogbone", "Create Dogbone Dress-up"))