Drop objects to buildplate that have been scaled

Otherwise they could be floating very high above the buildplate.

CURA-7855
This commit is contained in:
Jaime van Kessel 2021-01-15 15:21:57 +01:00
parent 263e1ae3a7
commit 5d9affc690
No known key found for this signature in database
GPG key ID: 3710727397403C91

View file

@ -1918,6 +1918,11 @@ class CuraApplication(QtApplication):
arrange(nodes_to_arrange, self.getBuildVolume(), fixed_nodes)
except:
Logger.logException("e", "Failed to arrange the models")
# Ensure that we don't have any weird floaty objects (CURA-7855)
for node in nodes_to_arrange:
node.translate(Vector(0, -node.getBoundingBox().bottom, 0), SceneNode.TransformSpace.World)
self.fileCompleted.emit(file_name)
def addNonSliceableExtension(self, extension):