Commit: 81043397d78e7c61b1afbea1ce5a6e6f05db1f06
Author: Campbell Barton
Date:   Fri Jul 26 20:01:51 2019 +1000
Branches: master
https://developer.blender.org/rB81043397d78e7c61b1afbea1ce5a6e6f05db1f06

Undo System: correct fix for T67709

===================================================================

M       source/blender/editors/sculpt_paint/paint_image_undo.c

===================================================================

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;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to