Skip to content

Commit

Permalink
[Path] - Use PathUtil to check if op is active.
Browse files Browse the repository at this point in the history
Just a bit of house keeping.
  • Loading branch information
dubstar-04 committed Mar 14, 2020
1 parent 953ae1e commit b4c08ea
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/Mod/Path/PathScripts/post/linuxcnc_post.py
Expand Up @@ -29,6 +29,7 @@
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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit b4c08ea

Please sign in to comment.