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.
This commit is contained in:
Gilles DOFFE
2017-04-04 12:02:28 +02:00
parent 812dbca5a9
commit 10ae265822

View File

@@ -227,7 +227,7 @@ def getToolControllers(obj):
'''returns all the tool controllers'''
controllers = []
try:
parent = obj.InList[0]
parent = findParentJob(obj)
except:
parent = None