Fix a crash issue when importing a 3MF file saved from version 2.3.1-alpha as geometry only

This commit is contained in:
SoftFever 2025-09-21 16:13:45 +08:00
parent 7aa3ce8a4d
commit f27381533c

View file

@ -3853,7 +3853,7 @@ std::vector<size_t> Plater::priv::load_files(const std::vector<fs::path>& input_
// }
// }
// Orca: check if the project is created with OrcaSlicer 2.3.1-alpha and use the sparse infill rotation template for non-safe infill patterns
else if ((file_version < app_version) && file_version == Semver("2.3.1-alpha")) {
else if (load_config && (file_version < app_version) && file_version == Semver("2.3.1-alpha")) {
if (!config_loaded.opt_string("sparse_infill_rotate_template").empty()) {
const auto _sparse_infill_pattern =
config_loaded.option<ConfigOptionEnum<InfillPattern>>("sparse_infill_pattern")->value;