Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-07-26 13:01:51 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-07-26 13:04:28 +0300
commit81043397d78e7c61b1afbea1ce5a6e6f05db1f06 (patch)
tree9998a34d53679055878dd0286e29ca5396362c6e /source/blender/editors
parent62338abde433b9fae1482664b9333aab3fdea602 (diff)
Undo System: correct fix for T67709
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/sculpt_paint/paint_image_undo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_image_undo.c b/source/blender/editors/sculpt_paint/paint_image_undo.c
index 1527ba31040..f29c8fd1dbe 100644
--- a/source/blender/editors/sculpt_paint/paint_image_undo.c
+++ b/source/blender/editors/sculpt_paint/paint_image_undo.c
@@ -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;