Skip to content

Commit

Permalink
skip inactive operations
Browse files Browse the repository at this point in the history
  • Loading branch information
dubstar-04 committed Mar 2, 2020
1 parent 24f10a3 commit 3e9ae6c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Mod/Path/PathScripts/post/linuxcnc_post.py
Expand Up @@ -185,6 +185,14 @@ 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

# fetch machine details
job = PathUtils.findParentJob(obj)

Expand Down

0 comments on commit 3e9ae6c

Please sign in to comment.