Compatibility mode scale line type colors

This commit is contained in:
Jack Ha 2017-01-25 09:48:36 +01:00
parent 5fff1f6657
commit a52cb2fa63
2 changed files with 5 additions and 5 deletions

View file

@ -180,10 +180,10 @@ class ProcessSlicedLayersJob(Job):
material_color_map[0, :] = color
# We have to scale the colors for compatibility mode
if bool(Preferences.getInstance().getValue("view/compatibility_mode")):
line_type_brightness = 0.5
else:
if Application.getInstance().getRenderer().getSupportsGeometryShader():
line_type_brightness = 1.0
else:
line_type_brightness = 0.5 # for compatibility mode
layer_mesh = layer_data.build(material_color_map, line_type_brightness)
if self._abort_requested: