diff options
author | Jack Ha <j.ha@ultimaker.com> | 2016-10-18 10:55:45 +0300 |
---|---|---|
committer | Jack Ha <j.ha@ultimaker.com> | 2016-10-18 10:55:45 +0300 |
commit | deb360642984cdd6ffa2b13cc182e9d1dfd9855e (patch) | |
tree | 441cca5b462834b34abe2a7cdb70c92b34168ba4 /plugins | |
parent | cda8fd5827e5f7b78b793198532be58d712d389f (diff) |
Fix gcode profile. CURA-2718
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/GCodeWriter/GCodeWriter.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/GCodeWriter/GCodeWriter.py b/plugins/GCodeWriter/GCodeWriter.py index ee35a05215..9ff1105b9f 100644 --- a/plugins/GCodeWriter/GCodeWriter.py +++ b/plugins/GCodeWriter/GCodeWriter.py @@ -13,6 +13,7 @@ from UM.Settings.InstanceContainer import InstanceContainer import re #For escaping characters in the settings. import json +import copy ## Writes g-code to a file. # @@ -70,7 +71,7 @@ class GCodeWriter(MeshWriter): flat_container.setDefinition(instance_container1.getDefinition()) else: flat_container.setDefinition(instance_container2.getDefinition()) - flat_container.setMetaData(instance_container2.getMetaData()) + flat_container.setMetaData(copy.deepcopy(instance_container2.getMetaData())) for key in instance_container2.getAllKeys(): flat_container.setProperty(key, "value", instance_container2.getProperty(key, "value")) |