1
1

Fix T95919: Apply Pose as Rest Pose Operator crashes

A simple mistake with a null mesh in rBcfa53e0fbeed.
This commit is contained in:
2022-02-21 13:59:02 -05:00
parent 49ae0b5b3c
commit 284cef473f

View File

@@ -545,8 +545,8 @@ static void contarget_get_mesh_mat(Object *ob, const char *substring, float mat[
float vec[3] = {0.0f, 0.0f, 0.0f};
float normal[3] = {0.0f, 0.0f, 0.0f};
float weightsum = 0.0f;
const float(*vert_normals)[3] = BKE_mesh_vertex_normals_ensure(me_eval);
if (me_eval) {
const float(*vert_normals)[3] = BKE_mesh_vertex_normals_ensure(me_eval);
const MDeformVert *dvert = CustomData_get_layer(&me_eval->vdata, CD_MDEFORMVERT);
int numVerts = me_eval->totvert;