[Bf-blender-cvs] [5b189975430] blender-v2.81-release: T71094: anchored & drag-dot brushes paint continuously

Campbell Barton noreply at git.blender.org
Sat Nov 2 02:31:00 CET 2019


Commit: 5b1899754302dd543f108486890f8315c07b3bc2
Author: Campbell Barton
Date:   Sat Nov 2 12:22:51 2019 +1100
Branches: blender-v2.81-release
https://developer.blender.org/rB5b1899754302dd543f108486890f8315c07b3bc2

T71094: anchored & drag-dot brushes paint continuously

Error from 151cc02b6f823

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

M	source/blender/editors/space_image/image_undo.c

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

diff --git a/source/blender/editors/space_image/image_undo.c b/source/blender/editors/space_image/image_undo.c
index 577c4e24b11..49964869f1c 100644
--- a/source/blender/editors/space_image/image_undo.c
+++ b/source/blender/editors/space_image/image_undo.c
@@ -269,8 +269,14 @@ static void ptile_restore_runtime_list(ListBase *paint_tiles)
       SWAP(uint *, ptile->rect.uint, tmpibuf->rect);
     }
 
-    IMB_rectcpy(
-        ibuf, tmpibuf, ptile->x, ptile->y, 0, 0, ED_IMAGE_UNDO_TILE_SIZE, ED_IMAGE_UNDO_TILE_SIZE);
+    IMB_rectcpy(ibuf,
+                tmpibuf,
+                ptile->x * ED_IMAGE_UNDO_TILE_SIZE,
+                ptile->y * ED_IMAGE_UNDO_TILE_SIZE,
+                0,
+                0,
+                ED_IMAGE_UNDO_TILE_SIZE,
+                ED_IMAGE_UNDO_TILE_SIZE);
 
     if (has_float) {
       SWAP(float *, ptile->rect.fp, tmpibuf->rect_float);



More information about the Bf-blender-cvs mailing list