mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-19 03:37:29 +08:00
Merge branch 'master' of https://github.com/Ultimaker/Cura
This commit is contained in:
commit
de3edffe3e
@ -59,12 +59,12 @@ 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.
|
||||
extruder_stack = UM.Settings.ContainerRegistry.getInstance().findContainerStacks(id = ExtruderManager.getInstance().extruderIds[stack_nr])[0]
|
||||
new_instance.value = extruder_stack.getProperty(item, "value")
|
||||
new_instance.setProperty("value", extruder_stack.getProperty(item, "value"))
|
||||
settings.addInstance(new_instance)
|
||||
visibility_changed = True
|
||||
else:
|
||||
|
@ -1053,7 +1053,7 @@
|
||||
"unit": "°C",
|
||||
"type": "float",
|
||||
"default_value": 210,
|
||||
"minimum_value": "0",
|
||||
"minimum_value": "-273.15",
|
||||
"maximum_value_warning": "260",
|
||||
"enabled": "not (material_flow_dependent_temperature)",
|
||||
"settable_per_mesh": false,
|
||||
@ -1090,7 +1090,7 @@
|
||||
"unit": "°C",
|
||||
"type": "float",
|
||||
"default_value": 60,
|
||||
"minimum_value": "0",
|
||||
"minimum_value": "-273.15",
|
||||
"maximum_value_warning": "260",
|
||||
"enabled": "machine_heated_bed",
|
||||
"settable_per_mesh": false,
|
||||
@ -1269,7 +1269,7 @@
|
||||
"type": "float",
|
||||
"unit": "°C",
|
||||
"default_value": 150,
|
||||
"minimum_value": "0",
|
||||
"minimum_value": "-273.15",
|
||||
"maximum_value_warning": "260",
|
||||
"settable_per_mesh": false,
|
||||
"settable_per_extruder": true
|
||||
|
@ -7,5 +7,16 @@
|
||||
"author": "Ultimaker",
|
||||
"manufacturer": "Ultimaker",
|
||||
"visible": false
|
||||
},
|
||||
"overrides": {
|
||||
"material_print_temperature": {
|
||||
"minimum_value": "0"
|
||||
},
|
||||
"material_bed_temperature": {
|
||||
"minimum_value": "0"
|
||||
},
|
||||
"material_standby_temperature": {
|
||||
"minimum_value": "0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user