mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 03:59:04 +08:00
WIP: use .userChanges property to replace user containers in project loading
CURA-3756
This commit is contained in:
parent
3baec9b742
commit
8a94f94258
@ -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…
x
Reference in New Issue
Block a user