Added support for baseobject into PathOp, used by almost all ops anyway.

This commit is contained in:
Markus Lampert
2017-08-10 16:34:44 -07:00
committed by Yorik van Havre
parent a7edaadcdf
commit 62c9bcc39a
7 changed files with 39 additions and 63 deletions

View File

@@ -143,6 +143,14 @@ class ObjectOp(object):
obj.ViewObject.Visibility = False
return
if not job:
PathLog.error(translate("Path", "No parent job found for operation."))
return
if not job.Base:
PathLog.error(translate("Path", "Parent job %s doesn't have a base object") % job.Label)
return
self.baseobject = job.Base
if FeatureTool & self.opFeatures(obj):
tc = obj.ToolController
if tc is None or tc.ToolNumber == 0: