Fixed support for objects in the tree without a Proxy

This commit is contained in:
Markus Lampert
2018-09-29 19:18:47 -07:00
committed by Yorik van Havre
parent c23f800bc8
commit bc72303d66

View File

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