Undo System: correct fix for T67709

This commit is contained in:
Campbell Barton 2019-07-26 20:01:51 +10:00
parent 62338abde4
commit 81043397d7
1 changed files with 2 additions and 2 deletions

View File

@ -516,9 +516,9 @@ static void image_undosys_step_decode_undo(ImageUndoStep *us, bool is_final)
}
us_iter = (ImageUndoStep *)us_iter->step.next;
}
while (us_iter != us || (is_final && us_iter == us)) {
while (us_iter != us || (!is_final && us_iter == us)) {
image_undosys_step_decode_undo_impl(us_iter);
if (is_final) {
if (us_iter == us) {
break;
}
us_iter = (ImageUndoStep *)us_iter->step.prev;