Fix T42281, crash in subsurf with texture painting.
This commit is contained in:
parent
387dd2da8e
commit
e8fd23b602
Notes:
blender-bot
2023-02-14 09:56:29 +01:00
Referenced by issue #42281, Texture Painting in Blender 2.72a
|
@ -2353,8 +2353,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