Fix texture paint crash when painting onto stencil
This commit is contained in:
parent
e656dcd365
commit
248bba81e7
Notes:
blender-bot
2023-02-14 06:47:31 +01:00
Referenced by issue #52262, 2.79-rc1 "dri2 connection failed" Referenced by issue #52189, Principled shader does not interoperate nicely with texture alpha transparency Referenced by issue #52171, conversion of text objects to mesh generate improper mesh for letter T (even with default text font) Referenced by issue #52149, Crash on entering Edit Mode of high poly mesh used by Shrink Wrap Referenced by issue #52106, Render window don't close from Windows taskbar thumbnail Referenced by issue #52095, Blender 2.78.5/2.79 - Cannot switch to OpenCL render.
|
@ -3712,8 +3712,12 @@ static void project_paint_prepare_all_faces(
|
|||
}
|
||||
|
||||
/* don't allow using the same inage for painting and stencilling */
|
||||
if (slot->ima == ps->stencil_ima)
|
||||
if (slot->ima == ps->stencil_ima) {
|
||||
/* While this shouldn't be used, face-winding reads all polys.
|
||||
* It's less trouble to set all faces to valid UV's, avoiding NULL checks all over. */
|
||||
ps->dm_mloopuv[lt->poly] = mloopuv_base;
|
||||
continue;
|
||||
}
|
||||
|
||||
tpage = slot->ima;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue