mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 08:45:52 +08:00
SPE-1954: Fixed 3MF file containing post-processing script cannot be open as 'Start new PrusaSlicer instance'
This commit is contained in:
parent
3f3a3dd190
commit
d0dc6b99b6
@ -276,17 +276,19 @@ int CLI::run(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto* post_process = m_print_config.opt<ConfigOptionStrings>("post_process");
|
if (!start_gui) {
|
||||||
if (post_process != nullptr && !post_process->values.empty()) {
|
const auto* post_process = m_print_config.opt<ConfigOptionStrings>("post_process");
|
||||||
boost::nowide::cout << "\nA post-processing script has been detected in the config data:\n\n";
|
if (post_process != nullptr && !post_process->values.empty()) {
|
||||||
for (const auto& s : post_process->values) {
|
boost::nowide::cout << "\nA post-processing script has been detected in the config data:\n\n";
|
||||||
boost::nowide::cout << "> " << s << "\n";
|
for (const auto& s : post_process->values) {
|
||||||
|
boost::nowide::cout << "> " << s << "\n";
|
||||||
|
}
|
||||||
|
boost::nowide::cout << "\nContinue(Y/N) ? ";
|
||||||
|
char in;
|
||||||
|
boost::nowide::cin >> in;
|
||||||
|
if (in != 'Y' && in != 'y')
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
boost::nowide::cout << "\nContinue(Y/N) ? ";
|
|
||||||
char in;
|
|
||||||
boost::nowide::cin >> in;
|
|
||||||
if (in != 'Y' && in != 'y')
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Apply command line options to a more specific DynamicPrintConfig which provides normalize()
|
// Apply command line options to a more specific DynamicPrintConfig which provides normalize()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user