From ba6f314a073b775defbef876d2d3fad20d8806f8 Mon Sep 17 00:00:00 2001 From: Markus Lampert Date: Tue, 23 Jan 2018 14:00:31 -0800 Subject: [PATCH] Return the actual job instead of the check result of it being a job or not. --- src/Mod/Path/PathScripts/PathJobCmd.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Mod/Path/PathScripts/PathJobCmd.py b/src/Mod/Path/PathScripts/PathJobCmd.py index 0f9c21e786..495202bb6e 100644 --- a/src/Mod/Path/PathScripts/PathJobCmd.py +++ b/src/Mod/Path/PathScripts/PathJobCmd.py @@ -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