CAM: replace opProperty with more specific activeForOp

This commit is contained in:
jffmichi
2025-05-14 05:10:05 +02:00
parent 972a4908b9
commit 1e6637a9c8

View File

@@ -195,7 +195,7 @@ class PostProcessor:
# Now generate the gcode
for obj in self._job.Operations.Group:
tc = PathUtil.toolControllerForOp(obj)
if tc is not None and PathUtil.opProperty(obj, "Active"):
if tc is not None and PathUtil.activeForOp(obj):
if tc.ToolNumber != currTool:
sublist.append(tc)
Path.Log.debug(f"Appending TC: {tc.Name}")
@@ -227,7 +227,7 @@ class PostProcessor:
Path.Log.track(obj.Label)
# check if the operation is active
if not getattr(obj, "Active", True):
if not PathUtil.activeForOp(obj):
Path.Log.track()
continue
@@ -276,7 +276,7 @@ class PostProcessor:
for obj in self._job.Operations.Group:
# check if the operation is active
if not getattr(obj, "Active", True):
if not PathUtil.activeForOp(obj):
continue
sublist = []