From cd25a3417194789b5da46a27f2cae10371c57562 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Sun, 21 Jun 2015 21:45:18 -0300 Subject: [PATCH] Arch: added warning message when wall base is not a Part or Mesh --- src/Mod/Arch/ArchWall.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Mod/Arch/ArchWall.py b/src/Mod/Arch/ArchWall.py index 3797bdb11..d20128335 100644 --- a/src/Mod/Arch/ArchWall.py +++ b/src/Mod/Arch/ArchWall.py @@ -50,7 +50,10 @@ def makeWall(baseobj=None,length=None,width=None,height=None,align="Center",face if FreeCAD.GuiUp: _ViewProviderWall(obj.ViewObject) 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: obj.Face = face if length: