mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 08:47:52 -06:00
Fixed redo_to() function and code cleaning from redundant options
This commit is contained in:
parent
f985f5190c
commit
3720e6a3a3
4 changed files with 27 additions and 60 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue