mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 09:47:50 -06:00
WIP: use .userChanges property to replace user containers in project loading
CURA-3756
This commit is contained in:
parent
3baec9b742
commit
8a94f94258
1 changed files with 2 additions and 2 deletions
|
@ -585,14 +585,14 @@ class ThreeMFWorkspaceReader(WorkspaceReader):
|
||||||
if extruder_id:
|
if extruder_id:
|
||||||
for extruder in extruder_stacks:
|
for extruder in extruder_stacks:
|
||||||
if extruder.getId() == extruder_id:
|
if extruder.getId() == extruder_id:
|
||||||
extruder.replaceContainer(0, container)
|
extruder.userChanges = container
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# replacing the container ID for user instance containers for the machine
|
# replacing the container ID for user instance containers for the machine
|
||||||
machine_id = container.getMetaDataEntry("machine", None)
|
machine_id = container.getMetaDataEntry("machine", None)
|
||||||
if machine_id:
|
if machine_id:
|
||||||
if global_stack.getId() == machine_id:
|
if global_stack.getId() == machine_id:
|
||||||
global_stack.replaceContainer(0, container)
|
global_stack.userChanges = container
|
||||||
continue
|
continue
|
||||||
|
|
||||||
for changes_container_type in ("quality_changes", "definition_changes"):
|
for changes_container_type in ("quality_changes", "definition_changes"):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue