diff options
author | Jaime van Kessel <nallath@gmail.com> | 2020-06-30 14:39:32 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2020-06-30 14:39:32 +0300 |
commit | 440474b1e84d1f68a9e20499537bd7805cf5822b (patch) | |
tree | fa1c6a5b8296db2ffa88544d5a5b2b07aec2011d /cura/PickingPass.py | |
parent | ccd9a17be40bb2917082d336d13465c32d33e773 (diff) |
Pass the cached normal transformation to the rendere
CURA-7106
Diffstat (limited to 'cura/PickingPass.py')
-rw-r--r-- | cura/PickingPass.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cura/PickingPass.py b/cura/PickingPass.py index 6ffc63cbd4..eb190be16d 100644 --- a/cura/PickingPass.py +++ b/cura/PickingPass.py @@ -54,7 +54,7 @@ class PickingPass(RenderPass): # Fill up the batch with objects that can be sliced. ` for node in DepthFirstIterator(self._scene.getRoot()): #type: ignore #Ignore type error because iter() should get called automatically by Python syntax. if node.callDecoration("isSliceable") and node.getMeshData() and node.isVisible(): - batch.addItem(node.getWorldTransformation(copy = False), node.getMeshData()) + batch.addItem(node.getWorldTransformation(copy = False), node.getMeshData(), normal_transformation=node.getCachedNormalMatrix()) self.bind() batch.render(self._scene.getActiveCamera()) |