From 63ee21512203dec7a3159b370aba64cabf35fc0d Mon Sep 17 00:00:00 2001 From: Pekka Roivainen Date: Sun, 5 Feb 2017 00:23:02 +0200 Subject: [PATCH] findParentJob fixed to work from within a PathCompound --- src/Mod/Path/PathScripts/PathUtils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Path/PathScripts/PathUtils.py b/src/Mod/Path/PathScripts/PathUtils.py index d30b1f784..e76bca614 100644 --- a/src/Mod/Path/PathScripts/PathUtils.py +++ b/src/Mod/Path/PathScripts/PathUtils.py @@ -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