From 42c2a4d6ac4e86f8a062554728e7c44656a49afb Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Mon, 13 May 2019 13:10:36 -0300 Subject: [PATCH] Arch: Fixed some flat objects not appearing in techdraw --- src/Mod/Arch/ArchSectionPlane.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Mod/Arch/ArchSectionPlane.py b/src/Mod/Arch/ArchSectionPlane.py index 53a65de1db..11507159ff 100644 --- a/src/Mod/Arch/ArchSectionPlane.py +++ b/src/Mod/Arch/ArchSectionPlane.py @@ -99,14 +99,12 @@ def looksLikeDraft(o): # If there is no shape at all ignore it if not hasattr(o, 'Shape') or o.Shape.isNull(): return False - # If there are solids in the object, it will be handled later # by getCutShapes if len(o.Shape.Solids) > 0: return False - # If we have a shape, but no volume, it looks like a flat 2D object - return o.Shape.Volume == 0 + return o.Shape.Volume < 0.0000001 # add a little tolerance... def getCutShapes(objs,section,showHidden,groupSshapesByObject=False):