From 69b707cbfe490ccd7cebfb9df907c637a3bd1e09 Mon Sep 17 00:00:00 2001 From: fieldOfView Date: Thu, 9 Nov 2017 22:02:20 +0100 Subject: [PATCH] Fix coloring support_mesh with the color of the support_extruder --- plugins/SolidView/SolidView.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/SolidView/SolidView.py b/plugins/SolidView/SolidView.py index 56d8cf11d7..5c8f9c929f 100644 --- a/plugins/SolidView/SolidView.py +++ b/plugins/SolidView/SolidView.py @@ -103,14 +103,14 @@ class SolidView(View): per_mesh_stack = node.callDecoration("getStack") if per_mesh_stack: 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: material_color = self._extruders_model.getItem(extruder_index)["color"] except KeyError: 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_factor = 0.6 try: