Fixed operation update when TC changes - allow TC edit abortion.

This commit is contained in:
Markus Lampert
2017-09-04 18:45:12 -07:00
committed by wmayer
parent 466486211d
commit 8a9dc58c72
3 changed files with 15 additions and 16 deletions

View File

@@ -221,6 +221,20 @@ class ObjectJob:
group.append(tc)
self.obj.ToolController = group
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)
for op in self.obj.Operations.Group:
collectBaseOps(op)
return ops
@classmethod
def baseCandidates(cls):