Fixed default tool controller creation if job template doesn't include TCs.

This commit is contained in:
Markus Lampert
2017-10-22 11:24:58 -07:00
parent 2040150523
commit d63da36026
+1 -1
View File
@@ -243,7 +243,7 @@ class ObjectJob:
else:
PathLog.error(translate('PathJob', "Unsupported PathJob template version %s") % attrs.get(JobTemplate.Version))
tcs.append(PathToolController.Create())
else:
if not tcs:
tcs.append(PathToolController.Create())
PathLog.debug("setting tool controllers (%d)" % len(tcs))
obj.ToolController = tcs