Added support for baseobject into PathOp, used by almost all ops anyway.
This commit is contained in:
committed by
Yorik van Havre
parent
a7edaadcdf
commit
62c9bcc39a
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user