mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-14 21:16:01 +08:00
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:
parent
3e5fa7b591
commit
72df789077
@ -222,7 +222,7 @@ void ProjectDirtyStateManager::reset_after_save()
|
|||||||
m_last_save.main = main_active_snapshot->timestamp + 1;
|
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);
|
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();
|
reset_initial_presets();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user