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

This commit is contained in:
Markus Lampert
2017-10-01 16:07:00 -07:00
parent 2040150523
commit d63da36026

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