diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-11-02 04:22:51 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-11-02 04:22:51 +0300 |
commit | 5b1899754302dd543f108486890f8315c07b3bc2 (patch) | |
tree | d058774f49ca4c20cd7b634c66875dde93d29292 /source/blender/editors/space_image/image_undo.c | |
parent | 4fec2b0660452adaeb4e1a309901bb3650af9419 (diff) |
T71094: anchored & drag-dot brushes paint continuously
Error from 151cc02b6f823
Diffstat (limited to 'source/blender/editors/space_image/image_undo.c')
-rw-r--r-- | source/blender/editors/space_image/image_undo.c | 10 |
1 files changed, 8 insertions, 2 deletions
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); |