From 3414c042b61eec0f9c6402899d7e1cf88b3771cc Mon Sep 17 00:00:00 2001 From: Bernd Hahnebach Date: Tue, 7 Aug 2018 22:34:50 +0200 Subject: [PATCH] FEM: clipping plane, fix bound box calculation for obj with a property called Shape which is not a occt shape --- src/Mod/Fem/femtools/femutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Fem/femtools/femutils.py b/src/Mod/Fem/femtools/femutils.py index f29d90c5ab..6e2cfc89cb 100644 --- a/src/Mod/Fem/femtools/femutils.py +++ b/src/Mod/Fem/femtools/femutils.py @@ -106,7 +106,7 @@ def isDerivedFrom(obj, t): def getBoundBoxOfAllDocumentShapes(doc): overalboundbox = None for o in doc.Objects: - if hasattr(o, 'Shape'): + if hasattr(o, 'Shape') and hasattr(o.Shape, 'BoundBox'): # netgen mesh obj has an attribut Shape which is a Document obj, which has no BB try: bb = o.Shape.BoundBox except: