SPE-1954: Fixed 3MF file containing post-processing script cannot be open as 'Start new PrusaSlicer instance'

This commit is contained in:
enricoturri1966 2023-10-17 10:05:03 +02:00 committed by Lukas Matena
parent 3f3a3dd190
commit d0dc6b99b6

View File

@ -276,6 +276,7 @@ int CLI::run(int argc, char **argv)
}
}
if (!start_gui) {
const auto* post_process = m_print_config.opt<ConfigOptionStrings>("post_process");
if (post_process != nullptr && !post_process->values.empty()) {
boost::nowide::cout << "\nA post-processing script has been detected in the config data:\n\n";
@ -288,6 +289,7 @@ int CLI::run(int argc, char **argv)
if (in != 'Y' && in != 'y')
return 0;
}
}
// Apply command line options to a more specific DynamicPrintConfig which provides normalize()
// (command line options override --load files)