From ea31d9d41b7682c44d00f9946b4d48186c1df9d7 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Tue, 7 Apr 2020 13:16:48 +0200 Subject: [PATCH] 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. --- cura/PlatformPhysics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cura/PlatformPhysics.py b/cura/PlatformPhysics.py index 53cc87a7b3..015795e506 100755 --- a/cura/PlatformPhysics.py +++ b/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())