mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
Fix coloring support_mesh with the color of the support_extruder
This commit is contained in:
parent
a1320939e8
commit
69b707cbfe
1 changed files with 2 additions and 2 deletions
|
@ -103,14 +103,14 @@ class SolidView(View):
|
||||||
per_mesh_stack = node.callDecoration("getStack")
|
per_mesh_stack = node.callDecoration("getStack")
|
||||||
if per_mesh_stack:
|
if per_mesh_stack:
|
||||||
if per_mesh_stack.getProperty("support_mesh", "value"):
|
if per_mesh_stack.getProperty("support_mesh", "value"):
|
||||||
extruder_index = global_container_stack.getProperty("support_extruder_nr", "value")
|
extruder_index = int(global_container_stack.getProperty("support_extruder_nr", "value"))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
material_color = self._extruders_model.getItem(extruder_index)["color"]
|
material_color = self._extruders_model.getItem(extruder_index)["color"]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
material_color = self._extruders_model.defaultColors[0]
|
material_color = self._extruders_model.defaultColors[0]
|
||||||
|
|
||||||
if int(extruder_index) != int(ExtruderManager.getInstance().activeExtruderIndex):
|
if extruder_index != ExtruderManager.getInstance().activeExtruderIndex:
|
||||||
# Shade objects that are printed with the non-active extruder 25% darker
|
# Shade objects that are printed with the non-active extruder 25% darker
|
||||||
shade_factor = 0.6
|
shade_factor = 0.6
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue