From eea83074d403194ee05e452ce70985c2bd6bdf36 Mon Sep 17 00:00:00 2001 From: Markus Lampert Date: Sun, 1 Oct 2017 16:07:00 -0700 Subject: [PATCH] Fixed default tool controller creation if job template doesn't include TCs. --- src/Mod/Path/PathScripts/PathJob.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Path/PathScripts/PathJob.py b/src/Mod/Path/PathScripts/PathJob.py index 67b8677b2d..0d1f7f8a2c 100644 --- a/src/Mod/Path/PathScripts/PathJob.py +++ b/src/Mod/Path/PathScripts/PathJob.py @@ -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