Don't copy transformations if it's not needed

CURA=7106
This commit is contained in:
Jaime van Kessel 2020-06-23 16:24:34 +02:00
parent ac0c0d0698
commit b0ed47daf1
No known key found for this signature in database
GPG key ID: 3710727397403C91
5 changed files with 7 additions and 7 deletions

View file

@ -114,12 +114,12 @@ class PreviewPass(RenderPass):
1.0]
uniforms["diffuse_color"] = prettier_color(diffuse_color)
uniforms["diffuse_color_2"] = diffuse_color2
batch_support_mesh.addItem(node.getWorldTransformation(), node.getMeshData(), uniforms = uniforms)
batch_support_mesh.addItem(node.getWorldTransformation(copy = False), node.getMeshData(), uniforms = uniforms)
else:
# Normal scene node
uniforms = {}
uniforms["diffuse_color"] = prettier_color(cast(CuraSceneNode, node).getDiffuseColor())
batch.addItem(node.getWorldTransformation(), node.getMeshData(), uniforms = uniforms)
batch.addItem(node.getWorldTransformation(copy = False), node.getMeshData(), uniforms = uniforms)
self.bind()