mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-13 11:23:16 +08:00
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:
parent
aba027373b
commit
d97c9f6e4c
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user