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:
@@ -227,7 +227,7 @@ def getToolControllers(obj):
|
||||
'''returns all the tool controllers'''
|
||||
controllers = []
|
||||
try:
|
||||
parent = obj.InList[0]
|
||||
parent = findParentJob(obj)
|
||||
except:
|
||||
parent = None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user