Fix bad assert on redo

This commit is contained in:
Campbell Barton 2018-07-13 17:37:00 +02:00
parent 4705682151
commit 5eaa8bf02d
1 changed files with 3 additions and 2 deletions

View File

@ -131,8 +131,9 @@ static int ed_undo_step(bContext *C, int step, const char *undoname)
return OPERATOR_CANCELLED;
}
/* TODO(campbell), could use simple optimization. */
BLI_assert(step_data_from_name != wm->undo_stack->step_active);
/* happens on redo. */
// BLI_assert(step_data_from_name != wm->undo_stack->step_active);
/* TODO(campbell): could use simple optimization. */
step_for_callback = (
BLI_findindex(&wm->undo_stack->steps, step_data_from_name) <
BLI_findindex(&wm->undo_stack->steps, wm->undo_stack->step_active)) ? 1 : -1;