[FEM] Clipping plane: Fix handling of shapeless document objects

This commit is contained in:
UR-0
2021-02-08 17:28:58 +01:00
committed by wwmayer
parent e7e794753a
commit f79cef0e8a

View File

@@ -285,11 +285,12 @@ def getBoundBoxOfAllDocumentShapes(doc):
bb = o.FemMesh.BoundBox
except Exception:
pass
if bb.isValid():
if not overalboundbox:
overalboundbox = bb
else:
overalboundbox.add(bb)
if bb:
if bb.isValid():
if not overalboundbox:
overalboundbox = bb
else:
overalboundbox.add(bb)
return overalboundbox