From 8a94f9425806107f73983f407c9d44f1a8ee25b0 Mon Sep 17 00:00:00 2001 From: Lipu Fei Date: Thu, 11 May 2017 14:53:56 +0200 Subject: [PATCH] WIP: use .userChanges property to replace user containers in project loading CURA-3756 --- plugins/3MFReader/ThreeMFWorkspaceReader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/3MFReader/ThreeMFWorkspaceReader.py b/plugins/3MFReader/ThreeMFWorkspaceReader.py index 8cb34e6681..2a3719a4cc 100755 --- a/plugins/3MFReader/ThreeMFWorkspaceReader.py +++ b/plugins/3MFReader/ThreeMFWorkspaceReader.py @@ -585,14 +585,14 @@ class ThreeMFWorkspaceReader(WorkspaceReader): if extruder_id: for extruder in extruder_stacks: if extruder.getId() == extruder_id: - extruder.replaceContainer(0, container) + extruder.userChanges = container continue # replacing the container ID for user instance containers for the machine machine_id = container.getMetaDataEntry("machine", None) if machine_id: if global_stack.getId() == machine_id: - global_stack.replaceContainer(0, container) + global_stack.userChanges = container continue for changes_container_type in ("quality_changes", "definition_changes"):