From b4c08eaa0d05a3547564a55d15a649df032dfc89 Mon Sep 17 00:00:00 2001 From: Daniel Wood Date: Sat, 14 Mar 2020 10:56:29 +0000 Subject: [PATCH] [Path] - Use PathUtil to check if op is active. Just a bit of house keeping. --- src/Mod/Path/PathScripts/post/linuxcnc_post.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/Mod/Path/PathScripts/post/linuxcnc_post.py b/src/Mod/Path/PathScripts/post/linuxcnc_post.py index 372bd40974..ff93894d2f 100644 --- a/src/Mod/Path/PathScripts/post/linuxcnc_post.py +++ b/src/Mod/Path/PathScripts/post/linuxcnc_post.py @@ -29,6 +29,7 @@ import datetime import shlex from PathScripts import PostUtils from PathScripts import PathUtils +import PathScripts.PathUtil as PathUtil TOOLTIP = ''' This is a postprocessor file for the Path workbench. It is used to @@ -186,12 +187,8 @@ def export(objectslist, filename, argstring): for obj in objectslist: # Skip inactive operations - if hasattr(obj, 'Active'): - if not obj.Active: - continue - if hasattr(obj, 'Base') and hasattr(obj.Base, 'Active'): - if not obj.Base.Active: - continue + if not PathUtil.opProperty(obj, 'Active'): + continue # fetch machine details job = PathUtils.findParentJob(obj)