From 1c93df4ed6fa226a245678d066fd22777a202bcc Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Sun, 18 Mar 2012 00:10:08 -0300 Subject: [PATCH] Small fix in Arch mesh2shape --- src/Mod/Arch/ArchCommands.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Mod/Arch/ArchCommands.py b/src/Mod/Arch/ArchCommands.py index e94d21b3ef..cdb992b4af 100644 --- a/src/Mod/Arch/ArchCommands.py +++ b/src/Mod/Arch/ArchCommands.py @@ -192,12 +192,12 @@ def meshToShape(obj,mark=True): else: if solid.isClosed(): FreeCAD.ActiveDocument.removeObject(name) - else: - if mark: - newobj.ViewObject.ShapeColor = (1.0,0.0,0.0,1.0) newobj = FreeCAD.ActiveDocument.addObject("Part::Feature",name) newobj.Shape = solid newobj.Placement = plac + if not solid.isClosed(): + if mark: + newobj.ViewObject.ShapeColor = (1.0,0.0,0.0,1.0) return newobj return None