sculpt-dev: fix crash in boundary brush
This commit is contained in:
parent
11643ab8f7
commit
8a4d2eb670
|
@ -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];
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue