forked from bartvdbraak/blender
Fix T42281, crash in subsurf with texture painting.
This commit is contained in:
parent
61a330baca
commit
3a961d66ef
@ -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
Block a user