skip inactive operations

This commit is contained in:
Daniel Wood
2020-03-02 12:58:55 +00:00
committed by Bernd Hahnebach
parent d04bee5ed9
commit 4ea4e0e5dc

View File

@@ -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)