PATH: Prevent Job creation without Base object.
PathMillFace won't add a base if it isn't known to the parent
This commit is contained in:
parent
bafbd27632
commit
4c66748ade
|
@ -243,6 +243,9 @@ class TaskPanel:
|
|||
self.postProcessorArgsDefaultTooltip = self.form.cboPostProcessorArgs.toolTip()
|
||||
|
||||
def accept(self):
|
||||
if self.obj.Base is None:
|
||||
QtGui.QMessageBox.information(None,"","No Base Object Selected.")
|
||||
return
|
||||
self.getFields()
|
||||
FreeCADGui.ActiveDocument.resetEdit()
|
||||
FreeCADGui.Control.closeDialog()
|
||||
|
|
|
@ -27,6 +27,7 @@ import Path
|
|||
from PySide import QtCore, QtGui
|
||||
from PathScripts import PathUtils
|
||||
import Part
|
||||
import PathScripts.PathUtils
|
||||
import PathScripts.PathKurveUtils
|
||||
import area
|
||||
import TechDraw
|
||||
|
@ -135,6 +136,10 @@ class ObjectFace:
|
|||
|
||||
|
||||
def addFacebase(self, obj, ss, sub=""):
|
||||
parent = PathScripts.PathUtils.findParentJob(obj)
|
||||
if parent.Base is None:
|
||||
return
|
||||
|
||||
baselist = obj.Base
|
||||
if baselist is None:
|
||||
baselist = []
|
||||
|
|
Loading…
Reference in New Issue
Block a user