diff options
author | Ghostkeeper <ghost_keeper+github@hotmail.com> | 2015-12-09 19:32:22 +0300 |
---|---|---|
committer | Ghostkeeper <ghost_keeper+github@hotmail.com> | 2015-12-17 15:33:10 +0300 |
commit | 541873ae6edb80afb93c47312b9909df5654420e (patch) | |
tree | e40d5023e5780ed30bc6c7f6df670b1dad641e33 /plugins/GCodeWriter | |
parent | 63bdb08ec2b548f321fff3d04245237fcf1610ec (diff) |
Revert "Make serialisation version static"
This reverts commit 1771aafddb5082f51728b69f66862880701b4965.
Contributes to issue CURA-34.
Diffstat (limited to 'plugins/GCodeWriter')
-rw-r--r-- | plugins/GCodeWriter/GCodeWriter.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/plugins/GCodeWriter/GCodeWriter.py b/plugins/GCodeWriter/GCodeWriter.py index f8fe45ec6e..69a94f59d3 100644 --- a/plugins/GCodeWriter/GCodeWriter.py +++ b/plugins/GCodeWriter/GCodeWriter.py @@ -9,12 +9,6 @@ import re #For escaping characters in the settings. class GCodeWriter(MeshWriter): - ## Serialisation version ID of the settings that get serialised in g-code. - # - # If the format of settings is modified in any way that breaks backwards - # compatibility, this version number must be incremented. - settings_version_id = 1 - def __init__(self): super().__init__() @@ -42,8 +36,8 @@ class GCodeWriter(MeshWriter): # \param profile The profile to serialise. # \return A serialised string of the profile. def _serialiseProfile(self, profile): - #IF YOU CHANGE THIS FUNCTION IN A WAY THAT BREAKS REVERSE COMPATIBILITY, INCREMENT settings_version_id! - prefix = ";SETTING_" + str(self.settings_version_id) + " " #The prefix to put before each line. + version = 1 #IF YOU CHANGE THIS FUNCTION IN A WAY THAT BREAKS REVERSE COMPATIBILITY, INCREMENT THIS VERSION NUMBER! + prefix = ";SETTING_" + str(version) + " " #The prefix to put before each line. serialised = profile.serialise() |