From 8b4492ebc50e4a2777aaf1c5ceb1cf012dd3b4c5 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Wed, 17 Jun 2015 09:45:01 -0300 Subject: [PATCH] Arch: small bugfix in cutvolumes --- src/Mod/Arch/ArchCommands.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Mod/Arch/ArchCommands.py b/src/Mod/Arch/ArchCommands.py index 0171aa38d..eab57c0fc 100644 --- a/src/Mod/Arch/ArchCommands.py +++ b/src/Mod/Arch/ArchCommands.py @@ -358,6 +358,8 @@ def getCutVolume(cutplane,shapes): from the given shapes and the given cutting plane""" if not shapes: return None,None,None + if not cutplane.Faces: + return None,None,None import Part if not isinstance(shapes,list): shapes = [shapes]