The view class were not added after to the rendering list after changing them

CURA-4062
This commit is contained in:
Aleksei S 2017-10-25 11:06:12 +02:00
parent 0f807cd03e
commit d2873dc65a
2 changed files with 5 additions and 2 deletions

View file

@ -56,6 +56,8 @@ class XRayView(View):
# Currently the RenderPass constructor requires a size > 0
# This should be fixed in RenderPass's constructor.
self._xray_pass = XRayPass.XRayPass(1, 1)
if self._xray_pass:
self.getRenderer().addRenderPass(self._xray_pass)
if not self._xray_composite_shader: