Switch to current SLA profile if an imported archive doesn't contain it.

Send a warning notification if this happens. Also,if  there is no current SLA profile initialized, an error message will tell the user to switch to an SLA profile before importing.

fixes #6915
This commit is contained in:
tamasmeszaros 2021-09-21 14:29:27 +02:00
parent 33eba4aea6
commit 4d2bf8db0d
3 changed files with 37 additions and 13 deletions

View file

@ -57,6 +57,8 @@ inline ConfigSubstitutions import_sla_archive(
return import_sla_archive(zipfname, windowsize, out, profile, progr);
}
class MissingProfileError : public RuntimeError { using RuntimeError::RuntimeError; };
} // namespace Slic3r::sla
#endif // ARCHIVETRAITS_HPP