PBVH: update mesh data pointers stored in pbvh #106271

Merged
Jacques Lucke merged 11 commits from JacquesLucke/blender:pbvh-update-pointers into main 2023-04-08 13:29:49 +02:00
3 changed files with 3 additions and 12 deletions
Showing only changes of commit 1328866ea5 - Show all commits

View File

@ -292,9 +292,6 @@ void BKE_pbvh_build_mesh(PBVH *pbvh,
const int *corner_verts,
float (*vert_positions)[3],
int totvert,
struct CustomData *vdata,
struct CustomData *ldata,
struct CustomData *pdata,
const struct MLoopTri *looptri,
int looptri_num);
/**

View File

@ -2201,9 +2201,6 @@ static PBVH *build_pbvh_from_regular_mesh(Object *ob, Mesh *me_eval_deform, bool
corner_verts.data(),
reinterpret_cast<float(*)[3]>(positions.data()),
me->totvert,
&me->vdata,
&me->ldata,
&me->pdata,
looptri,
looptris_num);

View File

@ -829,9 +829,6 @@ void BKE_pbvh_build_mesh(PBVH *pbvh,
const int *corner_verts,
float (*vert_positions)[3],
int totvert,
CustomData *vdata,
CustomData *ldata,
CustomData *pdata,
const MLoopTri *looptri,
int looptri_num)
{
@ -866,9 +863,9 @@ void BKE_pbvh_build_mesh(PBVH *pbvh,
pbvh->leaf_limit = LEAF_LIMIT;
#endif
pbvh->vdata = vdata;
pbvh->ldata = ldata;
pbvh->pdata = pdata;
pbvh->vdata = &mesh->vdata;
pbvh->ldata = &mesh->ldata;
pbvh->pdata = &mesh->pdata;
pbvh->faces_num = mesh->totpoly;
pbvh->face_sets_color_seed = mesh->face_sets_color_seed;