Tech ENABLE_SAVE_COMMANDS_ALWAYS_ENABLED set as default

This commit is contained in:
enricoturri1966 2021-11-30 09:41:43 +01:00
parent 03a6a46dce
commit 781b457035
6 changed files with 1 additions and 49 deletions

View file

@ -5918,16 +5918,11 @@ void Plater::export_amf()
bool Plater::export_3mf(const boost::filesystem::path& output_path)
{
#if ENABLE_SAVE_COMMANDS_ALWAYS_ENABLED
if (p->model.objects.empty()) {
MessageDialog dialog(nullptr, _L("The plater is empty.\nDo you want to save the project?"), _L("Save project"), wxYES_NO);
if (dialog.ShowModal() != wxID_YES)
return false;
}
#else
if (p->model.objects.empty())
return false;
#endif // ENABLE_SAVE_COMMANDS_ALWAYS_ENABLED
wxString path;
bool export_config = true;