sculpt-dev: fix crash in boundary brush

This commit is contained in:
Joseph Eagar 2022-11-20 10:02:13 -08:00
parent 11643ab8f7
commit 8a4d2eb670
2 changed files with 6 additions and 2 deletions

View File

@ -1286,6 +1286,10 @@ static void sculpt_boundary_bend_data_init(SculptSession *ss,
continue;
}
if (boundary->edit_info[i].original_vertex.i == -1) {
continue;
}
const float *co1 = SCULPT_vertex_co_get(ss, vertex);
float dir[3];

View File

@ -268,8 +268,8 @@ void SCULPT_cotangents_begin(Object *ob, SculptSession *ss)
if (!ss->vemap) {
BKE_mesh_vert_edge_map_create(&ss->vemap,
&ss->vemap_mem,
mesh->mvert,
mesh->medge,
BKE_mesh_verts(mesh),
BKE_mesh_edges(mesh),
mesh->totvert,
mesh->totedge,
true);