Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime van Kessel <nallath@gmail.com>2020-06-24 11:42:35 +0300
committerJaime van Kessel <nallath@gmail.com>2020-06-24 11:42:35 +0300
commitb1fe4793e43652abb8bdf60718f3b4bafe1a90e9 (patch)
treec0912b179237c18810529735fa81c3f1a1f145a9 /cura/XRayPass.py
parent03e66beafdfd538b55b65337843cce3f452d98fe (diff)
Put all objects normal models in a single render batch
THis speeds things up a fair bit for build plates with multiple models CURA-7106
Diffstat (limited to 'cura/XRayPass.py')
-rw-r--r--cura/XRayPass.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cura/XRayPass.py b/cura/XRayPass.py
index edc20ce62d..eb5f33cea2 100644
--- a/cura/XRayPass.py
+++ b/cura/XRayPass.py
@@ -29,7 +29,7 @@ class XRayPass(RenderPass):
batch = RenderBatch(self._shader, type = RenderBatch.RenderType.NoType, backface_cull = False, blend_mode = RenderBatch.BlendMode.Additive)
for node in DepthFirstIterator(self._scene.getRoot()):
if isinstance(node, CuraSceneNode) and node.getMeshData() and node.isVisible():
- batch.addItem(node.getWorldTransformation(), node.getMeshData())
+ batch.addItem(node.getWorldTransformation(copy = False), node.getMeshData())
self.bind()