Merge pull request #500 from pekkaroi/pathcompound-fix
PathUtils findParentJob fixed to work from within a PathCompound
This commit is contained in:
commit
48c620b640
|
@ -569,7 +569,7 @@ def findParentJob(obj):
|
||||||
for i in obj.InList:
|
for i in obj.InList:
|
||||||
if isinstance(i.Proxy, PathScripts.PathJob.ObjectPathJob):
|
if isinstance(i.Proxy, PathScripts.PathJob.ObjectPathJob):
|
||||||
return i
|
return i
|
||||||
if i.TypeId == "Path::FeaturePython":
|
if i.TypeId == "Path::FeaturePython" or i.TypeId == "Path::FeatureCompoundPython":
|
||||||
grandParent = findParentJob(i)
|
grandParent = findParentJob(i)
|
||||||
if grandParent is not None:
|
if grandParent is not None:
|
||||||
return grandParent
|
return grandParent
|
||||||
|
|
Loading…
Reference in New Issue
Block a user