Changed logic to avoid saving a project while a gizmo is in editing mode

This commit is contained in:
enricoturri1966 2021-06-01 08:32:58 +02:00
parent 580dc890b8
commit 1d4f7a8870
2 changed files with 12 additions and 4 deletions

View file

@ -5371,8 +5371,7 @@ bool Plater::export_3mf(const boost::filesystem::path& output_path)
void Plater::export_3mf(const boost::filesystem::path& output_path)
#endif // ENABLE_PROJECT_DIRTY_STATE
{
if (p->model.objects.empty()
|| canvas3D()->get_gizmos_manager().is_in_editing_mode(true))
if (p->model.objects.empty())
#if ENABLE_PROJECT_DIRTY_STATE
return false;
#else