mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-15 07:32:39 -07:00
Project dirty state manager -> Fixed crash when loading/saving a 3mf file
This commit is contained in:
@@ -210,8 +210,7 @@ void ProjectDirtyStateManager::reset_after_save()
|
||||
|
||||
if (&main_stack == &active_stack) {
|
||||
const UndoRedo::Snapshot* saveable_snapshot = get_last_saveable_snapshot(EStackType::Main, main_stack, m_state.gizmos, m_last_save.main);
|
||||
assert(saveable_snapshot != nullptr);
|
||||
m_last_save.main = saveable_snapshot->timestamp;
|
||||
m_last_save.main = (saveable_snapshot != nullptr) ? saveable_snapshot->timestamp : 0;
|
||||
}
|
||||
else {
|
||||
const UndoRedo::Snapshot* main_active_snapshot = get_active_snapshot(main_stack);
|
||||
|
||||
Reference in New Issue
Block a user