From 4ea4e0e5dcb1aae2a926b39b81eb3feae1d631ce Mon Sep 17 00:00:00 2001 From: Daniel Wood Date: Mon, 2 Mar 2020 12:58:55 +0000 Subject: [PATCH] skip inactive operations --- src/Mod/Path/PathScripts/post/linuxcnc_post.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Mod/Path/PathScripts/post/linuxcnc_post.py b/src/Mod/Path/PathScripts/post/linuxcnc_post.py index 0219ec223f..2c9337882b 100644 --- a/src/Mod/Path/PathScripts/post/linuxcnc_post.py +++ b/src/Mod/Path/PathScripts/post/linuxcnc_post.py @@ -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)