Browse Source

Remove bit of code duplication

CURA-7106
Jaime van Kessel 4 years ago
parent
commit
1b973b3f3c
2 changed files with 1 additions and 6 deletions
  1. 1 1
      cura/Settings/SettingOverrideDecorator.py
  2. 0 5
      plugins/SolidView/SolidView.py

+ 1 - 1
cura/Settings/SettingOverrideDecorator.py

@@ -104,7 +104,7 @@ class SettingOverrideDecorator(SceneNodeDecorator):
         """
 
         # for support_meshes, always use the support_extruder
-        if self.getStack().getProperty("support_mesh", "value"):
+        if self.getStack().userChanges.getProperty("support_mesh", "value"):
             global_container_stack = Application.getInstance().getGlobalContainerStack()
             if global_container_stack:
                 return str(global_container_stack.getProperty("support_extruder_nr", "value"))

+ 0 - 5
plugins/SolidView/SolidView.py

@@ -198,11 +198,6 @@ class SolidView(View):
                         extruder_index = "0"
                     extruder_index = int(extruder_index)
 
-                    # Use the support extruder instead of the active extruder if this is a support_mesh
-                    if per_mesh_stack:
-                        if per_mesh_stack.getProperty("support_mesh", "value"):
-                            extruder_index = int(global_container_stack.getExtruderPositionValueWithDefault("support_extruder_nr"))
-
                     try:
                         material_color = self._extruders_model.getItem(extruder_index)["color"]
                     except KeyError: