Fixed support for objects in the tree without a Proxy
This commit is contained in:
committed by
Yorik van Havre
parent
c23f800bc8
commit
bc72303d66
@@ -465,7 +465,7 @@ def findParentJob(obj):
|
||||
'''retrieves a parent job object for an operation or other Path object'''
|
||||
PathLog.track()
|
||||
for i in obj.InList:
|
||||
if isinstance(i.Proxy, PathScripts.PathJob.ObjectJob):
|
||||
if hasattr(i, 'Proxy') and isinstance(i.Proxy, PathScripts.PathJob.ObjectJob):
|
||||
return i
|
||||
if i.TypeId == "Path::FeaturePython" or i.TypeId == "Path::FeatureCompoundPython":
|
||||
grandParent = findParentJob(i)
|
||||
|
||||
Reference in New Issue
Block a user