We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb33aee commit ae3a8ecCopy full SHA for ae3a8ec
1 file changed
src/compas_viewer/renderer/renderer.py
@@ -621,8 +621,8 @@ def paint(self, is_instance: bool = False):
621
self.shader_lines.uniform2f("viewport", (self.width(), self.height()))
622
self.shader_lines.release()
623
624
- # Draw the grid
625
- if self.viewer.config.renderer.show_grid:
+ # Draw the grid (skip during instance rendering since grid doesn't have instance colors)
+ if self.viewer.config.renderer.show_grid and not is_instance:
626
self.shader_model.bind()
627
self.grid.draw(self.shader_model)
628
self.shader_model.release()
0 commit comments