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

This commit is contained in:
UR-0
2021-02-09 20:20:49 +01:00
committed by wwmayer
parent ea67e77e81
commit 9f871a444b
+6 -5
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