Fixed redo_to() function and code cleaning from redundant options

This commit is contained in:
YuSanka 2019-07-10 10:15:07 +02:00
parent f985f5190c
commit 3720e6a3a3
4 changed files with 27 additions and 60 deletions

View file

@ -4150,7 +4150,7 @@ void Plater::redo_to(int selection)
return;
}
const int idx = selection + p->get_active_snapshot_index();
const int idx = p->get_active_snapshot_index() + selection + 1;
p->redo_to(p->undo_redo_stack.snapshots()[idx].timestamp);
}
bool Plater::undo_redo_string_getter(const bool is_undo, int idx, const char** out_text)