Fix T42281, crash in subsurf with texture painting.
This commit is contained in:
@@ -2352,8 +2352,9 @@ static void ccgDM_drawFacesTex_common(DerivedMesh *dm,
|
|||||||
|
|
||||||
mat_nr_cache = mat_nr;
|
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;
|
gridOffset += gridFaces * gridFaces * numVerts;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user