Merge pull request #9128 from Ultimaker/CURA-7855_Drop_objects_to_buildplate_after_scale

Drop objects to buildplate that have been scaled
This commit is contained in:
Jelle Spijker 2021-01-18 12:32:12 +01:00 committed by GitHub
commit 9e60f6d23b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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):