mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 23:46:22 -06:00
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.
This commit is contained in:
parent
95b5a176b8
commit
ea31d9d41b
1 changed files with 1 additions and 1 deletions
|
@ -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())
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue