1
1

Fix #108136: Regression : Texture paint is broken

Mistake in the 406cfd214a which was calculating the offset wrongly.

Pull Request: blender/blender#108138
This commit is contained in:
2023-05-22 10:45:15 +02:00
committed by Sergey Sharybin
parent 7f4aa0b553
commit eb3e32b653

View File

@@ -1934,7 +1934,7 @@ static ProjPixel *project_paint_uvpixel_init(const ProjPaintState *ps,
zero_v4(projPixel->newColor.f);
}
else {
projPixel->pixel.ch_pt = ibuf->byte_buffer.data + (x_px + y_px * ibuf->x);
projPixel->pixel.ch_pt = ibuf->byte_buffer.data + (x_px + y_px * ibuf->x) * 4;
projPixel->origColor.uint_pt = (uint *)projima->undoRect[tile_index] + tile_offset;
projPixel->newColor.uint_ = 0;
}