Fix #108136: Regression : Texture paint is broken
Mistake in the 406cfd214a which was calculating the offset wrongly.
Pull Request: https://projects.blender.org/blender/blender/pulls/108138
This commit is contained in:
committed by
Sergey Sharybin
parent
7f4aa0b553
commit
eb3e32b653
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user