Arch: added warning message when wall base is not a Part or Mesh
This commit is contained in:
parent
72abf54d12
commit
cd25a34171
|
@ -50,7 +50,10 @@ def makeWall(baseobj=None,length=None,width=None,height=None,align="Center",face
|
||||||
if FreeCAD.GuiUp:
|
if FreeCAD.GuiUp:
|
||||||
_ViewProviderWall(obj.ViewObject)
|
_ViewProviderWall(obj.ViewObject)
|
||||||
if baseobj:
|
if baseobj:
|
||||||
obj.Base = baseobj
|
if baseobj.isDerivedFrom("Part::Feature") or baseobj.isDerivedFrom("Mesh::Feature"):
|
||||||
|
obj.Base = baseobj
|
||||||
|
else:
|
||||||
|
FreeCAD.Console.PrintWarning(str(translate("Arch","Walls can only be based on Part or Mesh objects")))
|
||||||
if face:
|
if face:
|
||||||
obj.Face = face
|
obj.Face = face
|
||||||
if length:
|
if length:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user