From db56b3eca65b73fe289c1c91865a706d36bddf45 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Fri, 18 Aug 2017 12:57:22 -0300 Subject: [PATCH] Arch: Don't remove splitter if removing splitter fails --- src/Mod/Arch/ArchComponent.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Mod/Arch/ArchComponent.py b/src/Mod/Arch/ArchComponent.py index 5453215b5b..5ad5284826 100644 --- a/src/Mod/Arch/ArchComponent.py +++ b/src/Mod/Arch/ArchComponent.py @@ -622,7 +622,13 @@ class Component: if shape.Volume < 0: FreeCAD.Console.PrintError(translate("Arch","Error computing the shape of this object")+"\n") return - shape = shape.removeSplitter() + import Part + try: + r = shape.removeSplitter() + except Part.OCCError: + pass + else: + shape = r obj.Shape = self.spread(obj,shape,placement) if not placement.isNull(): obj.Placement = placement