Fix transparency of minor grid cells

You need to turn it on manually, apparently.

Contributes to issue CURA-4150.
This commit is contained in:
Ghostkeeper 2017-08-17 10:35:00 +02:00
parent 38e907b3ae
commit bb3f8d085b
No known key found for this signature in database
GPG key ID: C5F96EE2BC0F7E75

View file

@ -177,7 +177,7 @@ class BuildVolume(SceneNode):
renderer.queueNode(self, mode = RenderBatch.RenderMode.Lines)
renderer.queueNode(self, mesh = self._origin_mesh)
renderer.queueNode(self, mesh = self._plate_mesh, shader = self._grid_shader, backface_cull = True)
renderer.queueNode(self, mesh = self._grid_mesh, mode = RenderBatch.RenderMode.Lines)
renderer.queueNode(self, mesh = self._grid_mesh, mode = RenderBatch.RenderMode.Lines, transparent = True)
if self._disallowed_area_mesh:
renderer.queueNode(self, mesh = self._disallowed_area_mesh, shader = self._shader, transparent = True, backface_cull = True, sort = -9)