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 96a04977a1
commit eea83074d4

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