Duplicating materialContainers should now duplicate all related material containers

CURA-2242
This commit is contained in:
Jaime van Kessel 2016-09-08 14:15:00 +02:00
parent 73c5c34b99
commit 8a8b55800b
3 changed files with 42 additions and 11 deletions

View file

@ -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)