Wfter changing the view the old view is removed from rendering

CURA-4062
This commit is contained in:
Aleksei S 2017-10-24 17:38:06 +02:00
parent 7404df66ac
commit 0f807cd03e
2 changed files with 2 additions and 0 deletions

View file

@ -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)