Fix T42281, crash in subsurf with texture painting.

This commit is contained in:
Antonis Ryakiotakis 2014-10-18 13:17:45 +02:00
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
1 changed files with 3 additions and 2 deletions

View File

@ -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;
}