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:
authorAleksei S <a.sasin@ultimaker.com>2017-10-24 18:38:06 +0300
committerAleksei S <a.sasin@ultimaker.com>2017-10-24 18:38:06 +0300
commit0f807cd03e377118e671c4e8e5ab57f7c11f5fbb (patch)
treea962c6daa2f98203e181ae032e45f30472132a2d /plugins/XRayView
parent7404df66ac30e61aa291cc3ac5e74165a656ac0b (diff)
Wfter changing the view the old view is removed from rendering
CURA-4062
Diffstat (limited to 'plugins/XRayView')
-rw-r--r--plugins/XRayView/XRayView.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/XRayView/XRayView.py b/plugins/XRayView/XRayView.py
index ed8d14b8b4..e7715209d0 100644
--- a/plugins/XRayView/XRayView.py
+++ b/plugins/XRayView/XRayView.py
@@ -74,5 +74,6 @@ class XRayView(View):
self._composite_pass.setCompositeShader(self._xray_composite_shader)
if event.type == Event.ViewDeactivateEvent:
+ self.getRenderer().removeRenderPass(self._xray_pass)
self._composite_pass.setLayerBindings(self._old_layer_bindings)
self._composite_pass.setCompositeShader(self._old_composite_shader)