Fixed ToolController creation when there are multiple jobs.
This commit is contained in:
committed by
Yorik van Havre
parent
ca8f827570
commit
abe2a15a37
@@ -465,7 +465,7 @@ def addToJob(obj, jobname=None):
|
||||
if len(jobs) == 1:
|
||||
job = jobs[0]
|
||||
else:
|
||||
FreeCAD.Console.PrintError("Didn't find the job")
|
||||
PathLog.error("Didn't find job %s" % jobname)
|
||||
return None
|
||||
else:
|
||||
jobs = GetJobs()
|
||||
|
||||
Reference in New Issue
Block a user