Fixed the following crash:

1) Start PrusaSlicer

2) Add a box to the plater

3) Open Seam Painting or Paint - on supports gizmo

4) Save project

->crash
This commit is contained in:
enricoturri1966 2021-06-17 08:16:54 +02:00
parent 3e5fa7b591
commit 72df789077

View File

@ -222,7 +222,7 @@ void ProjectDirtyStateManager::reset_after_save()
m_last_save.main = main_active_snapshot->timestamp + 1;
}
const UndoRedo::Snapshot* saveable_snapshot = get_last_saveable_snapshot(EStackType::Gizmo, active_stack, m_state.gizmos, m_last_save.main);
m_last_save.gizmo = saveable_snapshot->timestamp;
m_last_save.gizmo = (saveable_snapshot != nullptr) ? saveable_snapshot->timestamp : 0;
}
reset_initial_presets();