diff options
author | Jaime van Kessel <nallath@gmail.com> | 2020-06-24 11:42:35 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2020-06-24 11:42:35 +0300 |
commit | b1fe4793e43652abb8bdf60718f3b4bafe1a90e9 (patch) | |
tree | c0912b179237c18810529735fa81c3f1a1f145a9 /cura | |
parent | 03e66beafdfd538b55b65337843cce3f452d98fe (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')
-rw-r--r-- | cura/XRayPass.py | 2 |
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() |