From f8adf99c8d627e3719dc972cb6df92e15156cff9 Mon Sep 17 00:00:00 2001 From: Enrico Turri <enricoturri@seznam.cz> Date: Thu, 19 Dec 2019 09:41:30 +0100 Subject: [PATCH] Rolled back version numbers for 3mf and amf files --- src/libslic3r/Format/3mf.cpp | 4 +++- src/libslic3r/Format/AMF.cpp | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/libslic3r/Format/3mf.cpp b/src/libslic3r/Format/3mf.cpp index b25d15af5..7f06f763e 100644 --- a/src/libslic3r/Format/3mf.cpp +++ b/src/libslic3r/Format/3mf.cpp @@ -35,7 +35,9 @@ namespace pt = boost::property_tree; // 0 : .3mf, files saved by older slic3r or other applications. No version definition in them. // 1 : Introduction of 3mf versioning. No other change in data saved into 3mf files. // 2 : Meshes saved in their local system; Volumes' matrices and source data added to Metadata/Slic3r_PE_model.config file. -const unsigned int VERSION_3MF = 2; +// WARNING !! -> the version number has been rolled back to 1 +// the next change should use 3 +const unsigned int VERSION_3MF = 1; const char* SLIC3RPE_3MF_VERSION = "slic3rpe:Version3mf"; // definition of the metadata name saved into .model file const std::string MODEL_FOLDER = "3D/"; diff --git a/src/libslic3r/Format/AMF.cpp b/src/libslic3r/Format/AMF.cpp index aee8b7401..fd4c8a370 100644 --- a/src/libslic3r/Format/AMF.cpp +++ b/src/libslic3r/Format/AMF.cpp @@ -42,7 +42,9 @@ namespace pt = boost::property_tree; // Added x, y and z components of scale // Added x, y and z components of mirror // 3 : Meshes saved in their local system; Added volumes' matrices and source data -const unsigned int VERSION_AMF = 3; +// WARNING !! -> the version number has been rolled back to 2 +// the next change should use 4 +const unsigned int VERSION_AMF = 2; const char* SLIC3RPE_AMF_VERSION = "slic3rpe_amf_version"; const char* SLIC3R_CONFIG_TYPE = "slic3rpe_config";