From 10ae265822903a76d1c9efbdf9b4c45c38d586a7 Mon Sep 17 00:00:00 2001 From: Gilles DOFFE Date: Tue, 4 Apr 2017 12:02:28 +0200 Subject: [PATCH] path: use findParentJob() in getToolControllers() When applying dressup, the dressup became the new parent of the path feature object. Then, in the getToolControllers() function, obj does not point systematically to the parent job. An existing function findParentJob() is more suitable as it looks for the job also into grandparents. --- 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 1bbeb32791..c9d491b40a 100644 --- a/src/Mod/Path/PathScripts/PathUtils.py +++ b/src/Mod/Path/PathScripts/PathUtils.py @@ -227,7 +227,7 @@ def getToolControllers(obj): '''returns all the tool controllers''' controllers = [] try: - parent = obj.InList[0] + parent = findParentJob(obj) except: parent = None