WIP Undo / Redo and project state: Marking Undo / Redo snapshots
with their purpose.
Follow-up to 41dc265a45
This commit is contained in:
parent
41dc265a45
commit
9c4494637c
2 changed files with 5 additions and 3 deletions
src/slic3r/GUI/Gizmos
|
@ -57,7 +57,8 @@ void GLGizmoPainterBase::activate_internal_undo_redo_stack(bool activate)
|
|||
m_internal_stack_active = true;
|
||||
}
|
||||
if (!activate && m_internal_stack_active) {
|
||||
bool project_modified = plater->leave_gizmos_stack();
|
||||
//FIXME report the true state!
|
||||
bool project_modified = true; // plater->leave_gizmos_stack();
|
||||
std::string str = get_painter_type() == PainterGizmoType::SEAM
|
||||
? _u8L("Leaving Seam painting")
|
||||
: _u8L("Leaving Paint-on supports");
|
||||
|
|
|
@ -926,9 +926,10 @@ void GLGizmoSlaSupports::on_set_state()
|
|||
}
|
||||
else {
|
||||
// we are actually shutting down
|
||||
bool project_modified = disable_editing_mode(); // so it is not active next time the gizmo opens
|
||||
//FIXME report the true state!
|
||||
bool project_modified = true; // disable_editing_mode(); // so it is not active next time the gizmo opens
|
||||
Plater::TakeSnapshot snapshot(wxGetApp().plater(), _L("Leaving SLA gizmo"),
|
||||
project_modified ? UndoRedo::SnapshotType::LeavingGizmoWithAction : UndoRedo::SnapshotType::LeavingGizmoNo);
|
||||
project_modified ? UndoRedo::SnapshotType::LeavingGizmoWithAction : UndoRedo::SnapshotType::LeavingGizmoNoAction);
|
||||
m_normal_cache.clear();
|
||||
m_old_mo_id = -1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue