Don't use extruder fallback on single-extrusion machines

Due to a gnawing feeling in the back of my head, I tested this with an UM2 and adding settings failed there. This fixes it.

Contributes to issue CURA-2011.
This commit is contained in:
Ghostkeeper 2016-08-04 11:36:45 +02:00
parent aba027373b
commit d97c9f6e4c
No known key found for this signature in database
GPG key ID: 701948C5954A7385

View file

@ -59,7 +59,7 @@ class PerObjectSettingVisibilityHandler(UM.Settings.Models.SettingVisibilityHand
definition = self._stack.getSettingDefinition(item)
if definition:
new_instance = SettingInstance(definition, settings)
if definition.global_inherits_stack:
if definition.global_inherits_stack and self._stack.getProperty("machine_extruder_count", "value") > 1:
#Obtain the value from the correct container stack. Only once, upon adding the setting.
stack_nr = self._stack.getProperty(item, "global_inherits_stack") #Stack to get the setting from.
if int(stack_nr) >= 0: #Only if it defines an extruder stack.