mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Always set the active extruder stack when loading project file settings - CURA-4482
This commit is contained in:
parent
c23c031152
commit
77cd10374c
2 changed files with 6 additions and 13 deletions
|
@ -107,20 +107,13 @@ class ThreeMFReader(MeshReader):
|
||||||
um_node.addDecorator(SettingOverrideDecorator())
|
um_node.addDecorator(SettingOverrideDecorator())
|
||||||
|
|
||||||
global_container_stack = Application.getInstance().getGlobalContainerStack()
|
global_container_stack = Application.getInstance().getGlobalContainerStack()
|
||||||
|
|
||||||
# Ensure the correct next container for the SettingOverride decorator is set.
|
# Ensure the correct next container for the SettingOverride decorator is set.
|
||||||
if global_container_stack:
|
if global_container_stack:
|
||||||
multi_extrusion = global_container_stack.getProperty("machine_extruder_count", "value") > 1
|
|
||||||
|
|
||||||
# Ensure that all extruder data is reset
|
|
||||||
if not multi_extrusion:
|
|
||||||
default_stack_id = global_container_stack.getId()
|
|
||||||
else:
|
|
||||||
default_stack = ExtruderManager.getInstance().getExtruderStack(0)
|
default_stack = ExtruderManager.getInstance().getExtruderStack(0)
|
||||||
|
|
||||||
if default_stack:
|
if default_stack:
|
||||||
default_stack_id = default_stack.getId()
|
um_node.callDecoration("setActiveExtruder", default_stack.getId())
|
||||||
else:
|
|
||||||
default_stack_id = global_container_stack.getId()
|
|
||||||
um_node.callDecoration("setActiveExtruder", default_stack_id)
|
|
||||||
|
|
||||||
# Get the definition & set it
|
# Get the definition & set it
|
||||||
definition = QualityManager.getInstance().getParentMachineDefinition(global_container_stack.getBottom())
|
definition = QualityManager.getInstance().getParentMachineDefinition(global_container_stack.getBottom())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue