Merge branch 'blender-v2.93-release'
This commit is contained in:
commit
c9d81678d7
|
@ -1029,9 +1029,15 @@ static void gpencil_invert_image(tGPDfill *tgpf)
|
|||
/* Red->Green */
|
||||
else if (color[0] == 1.0f) {
|
||||
set_pixel(ibuf, v, fill_col[1]);
|
||||
/* Add thickness of 2 pixels to avoid too thin lines. */
|
||||
int offset = (v % ibuf->x < center) ? 1 : -1;
|
||||
set_pixel(ibuf, v + offset, fill_col[1]);
|
||||
/* Add thickness of 2 pixels to avoid too thin lines, but avoid extremes of the pixel line.
|
||||
*/
|
||||
int row = v / ibuf->x;
|
||||
int lowpix = row * ibuf->x;
|
||||
int highpix = lowpix + ibuf->x - 1;
|
||||
if ((v > lowpix) && (v < highpix)) {
|
||||
int offset = (v % ibuf->x < center) ? 1 : -1;
|
||||
set_pixel(ibuf, v + offset, fill_col[1]);
|
||||
}
|
||||
}
|
||||
else {
|
||||
/* Set to Transparent. */
|
||||
|
|
Loading…
Reference in New Issue