diff --git a/src/OrcaSlicer.cpp b/src/OrcaSlicer.cpp index c461a01436..76a8586993 100644 --- a/src/OrcaSlicer.cpp +++ b/src/OrcaSlicer.cpp @@ -1406,7 +1406,7 @@ int CLI::run(int argc, char **argv) }*/ Semver cli_ver = *Semver::parse(SoftFever_VERSION); - if (!allow_newer_file && ((cli_ver.maj() != file_version.maj()) || (cli_ver.min() < file_version.min()))){ + if (!allow_newer_file && ((cli_ver.maj() < file_version.maj()) || ((cli_ver.maj() == file_version.maj()) && (cli_ver.min() < file_version.min())))){ BOOST_LOG_TRIVIAL(error) << boost::format("Version Check: File Version %1% not supported by current cli version %2%")%file_version.to_string() %SoftFever_VERSION; record_exit_reson(outfile_dir, CLI_FILE_VERSION_NOT_SUPPORTED, 0, cli_errors[CLI_FILE_VERSION_NOT_SUPPORTED], sliced_info); flush_and_exit(CLI_FILE_VERSION_NOT_SUPPORTED); diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index ae04f56dda..0d05da740c 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -4437,7 +4437,7 @@ std::vector Plater::priv::load_files(const std::vector& input_ // for (ModelVolume *model_volume : model_object->volumes) model_volume->config.reset(); // } // } - else if (load_config && (file_version > app_version)) { + else if (load_config && (file_version.maj() == app_version.maj()) && (file_version.min() > app_version.min())) { if (config_substitutions.unrecogized_keys.size() > 0) { wxString text = wxString::Format(_L("The 3mf's version %s is newer than %s's version %s, found following unrecognized keys:"), file_version.to_string(), std::string(SLIC3R_APP_FULL_NAME), app_version.to_string());