Merge pull request #6664 from sliptonic/bug/spindledirectiondefault
[Path] Bug/spindledirectiondefault
This commit is contained in:
@@ -131,9 +131,9 @@ class ToolController:
|
||||
# Enumeration lists for App::PropertyEnumeration properties
|
||||
enums = {
|
||||
"SpindleDir": [
|
||||
(translate("Path_ToolController", "None"), "None"),
|
||||
(translate("Path_ToolController", "Forward"), "Forward"),
|
||||
(translate("Path_ToolController", "Reverse"), "Reverse"),
|
||||
(translate("Path_ToolController", "None"), "None"),
|
||||
], # this is the direction that the profile runs
|
||||
}
|
||||
|
||||
@@ -276,6 +276,7 @@ class ToolController:
|
||||
args["spindledirection"] = SpindleDirection.CW
|
||||
else:
|
||||
args["spindledirection"] = SpindleDirection.CCW
|
||||
|
||||
elif obj.SpindleDir == "None":
|
||||
args["spindledirection"] = SpindleDirection.OFF
|
||||
else:
|
||||
@@ -366,6 +367,10 @@ def Create(
|
||||
if tool.ViewObject:
|
||||
tool.ViewObject.Visibility = False
|
||||
obj.Tool = tool
|
||||
|
||||
if hasattr(obj.Tool, "SpindleDirection"):
|
||||
obj.SpindleDir = obj.Tool.SpindleDirection
|
||||
|
||||
obj.ToolNumber = toolNumber
|
||||
return obj
|
||||
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user