Return the actual job instead of the check result of it being a job or not.

This commit is contained in:
Markus Lampert
2018-01-23 14:00:31 -08:00
committed by wmayer
parent 75a0322637
commit ba6f314a07

View File

@@ -235,7 +235,8 @@ class CommandJobTemplateExport:
sel = FreeCADGui.Selection.getSelection()
if len(sel) == 1:
job = sel[0]
return hasattr(job, 'Proxy') and isinstance(job.Proxy, PathJob.ObjectJob)
if hasattr(job, 'Proxy') and isinstance(job.Proxy, PathJob.ObjectJob):
return job
return None