mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 01:29:00 +08:00
Fix deepcopy in SettingOverrideDecorator
Obvious mistake...
This commit is contained in:
parent
8c9939e797
commit
310a99fba7
@ -63,7 +63,7 @@ class SettingOverrideDecorator(SceneNodeDecorator):
|
|||||||
instance_container = copy.deepcopy(self._stack.getContainer(0), memo)
|
instance_container = copy.deepcopy(self._stack.getContainer(0), memo)
|
||||||
|
|
||||||
# A unique name must be added, or replaceContainer will not replace it
|
# A unique name must be added, or replaceContainer will not replace it
|
||||||
instance_container.setMetaDataEntry("id", self._generateUniqueName)
|
instance_container.setMetaDataEntry("id", self._generateUniqueName())
|
||||||
|
|
||||||
## Set the copied instance as the first (and only) instance container of the stack.
|
## Set the copied instance as the first (and only) instance container of the stack.
|
||||||
deep_copy._stack.replaceContainer(0, instance_container)
|
deep_copy._stack.replaceContainer(0, instance_container)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user