T71094: anchored & drag-dot brushes paint continuously

Error from 151cc02b6f
This commit is contained in:
Campbell Barton 2019-11-02 12:22:51 +11:00
parent 4fec2b0660
commit 5b18997543
1 changed files with 8 additions and 2 deletions

View File

@ -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);