Fix x-ray error color.

X-ray errors showed as green and translucent instead of read and solid. Now fixed.
CURA-7407
This commit is contained in:
Remco Burema 2020-04-29 12:06:20 +02:00
parent 8386d094d3
commit 4c4e611629
No known key found for this signature in database
GPG key ID: 215C49431D43F98C
3 changed files with 7 additions and 2 deletions

View file

@ -149,6 +149,7 @@ class SolidView(View):
theme = Application.getInstance().getTheme()
self._xray_composite_shader.setUniformValue("u_background_color", Color(*theme.getColor("viewport_background").getRgb()))
self._xray_composite_shader.setUniformValue("u_outline_color", Color(*theme.getColor("model_selection_outline").getRgb()))
self._xray_composite_shader.setUniformValue("u_flat_error_color_mix", 0.) # Don't show flat error color in solid-view.
renderer = self.getRenderer()
if not self._composite_pass or not 'xray' in self._composite_pass.getLayerBindings():