Browse Source

Don't crash on moving empty groups down to build plate

Empty groups don't have a bounding box. I don't know how an empty group could've gotten there but maybe there is something happening with a plug-in or something.

Fixes Sentry issue CURA-FM.
Ghostkeeper 5 years ago
parent
commit
ea31d9d41b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cura/PlatformPhysics.py

+ 1 - 1
cura/PlatformPhysics.py

@@ -181,7 +181,7 @@ class PlatformPhysics:
 
         if tool.getPluginId() == "TranslateTool":
             for node in Selection.getAllSelectedObjects():
-                if node.getBoundingBox().bottom < 0:
+                if node.getBoundingBox() and node.getBoundingBox().bottom < 0:
                     if not node.getDecorator(ZOffsetDecorator.ZOffsetDecorator):
                         node.addDecorator(ZOffsetDecorator.ZOffsetDecorator())