Skip to content

Commit

Permalink
Merge pull request #500 from pekkaroi/pathcompound-fix
Browse files Browse the repository at this point in the history
PathUtils findParentJob fixed to work from within a PathCompound
  • Loading branch information
wwmayer committed Feb 5, 2017
2 parents 6b0a0ff + 00c850f commit 48c620b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/Path/PathScripts/PathUtils.py
Expand Up @@ -569,7 +569,7 @@ def findParentJob(obj):
for i in obj.InList:
if isinstance(i.Proxy, PathScripts.PathJob.ObjectPathJob):
return i
if i.TypeId == "Path::FeaturePython":
if i.TypeId == "Path::FeaturePython" or i.TypeId == "Path::FeatureCompoundPython":
grandParent = findParentJob(i)
if grandParent is not None:
return grandParent
Expand Down

0 comments on commit 48c620b

Please sign in to comment.