Fix T42281, crash in subsurf with texture painting.
This commit is contained in:
parent
61a330baca
commit
3a961d66ef
Notes:
blender-bot
2023-06-07 10:31:13 +02:00
Referenced by issue #42281, Texture Painting in Blender 2.72a
|
@ -2352,8 +2352,9 @@ static void ccgDM_drawFacesTex_common(DerivedMesh *dm,
|
|||
|
||||
mat_nr_cache = mat_nr;
|
||||
}
|
||||
tf = tf_base + gridOffset;
|
||||
tf_stencil = tf_stencil_base + gridOffset;
|
||||
|
||||
tf = tf_base ? tf_base + gridOffset : NULL;
|
||||
tf_stencil = tf_stencil_base ? tf_stencil_base + gridOffset : NULL;
|
||||
gridOffset += gridFaces * gridFaces * numVerts;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue