From a9652ea214dbabe575ee52bea7d5eda8af8b9471 Mon Sep 17 00:00:00 2001 From: Markus Lampert Date: Tue, 12 Sep 2017 13:03:25 -0700 Subject: [PATCH] Fixed job removal for non-path base objects --- src/Mod/Path/PathScripts/PathJob.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/Mod/Path/PathScripts/PathJob.py b/src/Mod/Path/PathScripts/PathJob.py index 37d5bfcd99..322db6def5 100644 --- a/src/Mod/Path/PathScripts/PathJob.py +++ b/src/Mod/Path/PathScripts/PathJob.py @@ -235,14 +235,15 @@ class ObjectJob: def allOperations(self): ops = [] def collectBaseOps(op): - if op.TypeId == 'Path::FeaturePython': - ops.append(op) - if hasattr(op, 'Base'): - collectBaseOps(op.Base) - if op.TypeId == 'Path::FeatureCompoundPython': - ops.append(op) - for sub in op.Group: - collectBaseOps(sub) + if hasattr(op, 'TypeId'): + if op.TypeId == 'Path::FeaturePython': + ops.append(op) + if hasattr(op, 'Base'): + collectBaseOps(op.Base) + if op.TypeId == 'Path::FeatureCompoundPython': + ops.append(op) + for sub in op.Group: + collectBaseOps(sub) for op in self.obj.Operations.Group: collectBaseOps(op) return ops