mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-06 05:23:58 -06:00
Duplicating materialContainers should now duplicate all related material containers
CURA-2242
This commit is contained in:
parent
73c5c34b99
commit
8a8b55800b
3 changed files with 42 additions and 11 deletions
|
@ -322,6 +322,7 @@ class CuraApplication(QtApplication):
|
|||
path = Resources.getStoragePath(self.ResourceTypes.VariantInstanceContainer, file_name)
|
||||
|
||||
if path:
|
||||
instance.setPath(path)
|
||||
with SaveFile(path, "wt", -1, "utf-8") as f:
|
||||
f.write(data)
|
||||
|
||||
|
@ -346,6 +347,7 @@ class CuraApplication(QtApplication):
|
|||
elif stack_type == "extruder_train":
|
||||
path = Resources.getStoragePath(self.ResourceTypes.ExtruderStack, file_name)
|
||||
if path:
|
||||
stack.setPath(path)
|
||||
with SaveFile(path, "wt", -1, "utf-8") as f:
|
||||
f.write(data)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue