Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/pbvh.c
| Show First 20 Lines • Show All 2,792 Lines • ▼ Show 20 Lines | float (*BKE_pbvh_vert_coords_alloc(PBVH *pbvh))[3] | ||||
| } | } | ||||
| return vertCos; | return vertCos; | ||||
| } | } | ||||
| void BKE_pbvh_vert_coords_apply(PBVH *pbvh, const float (*vertCos)[3], const int totvert) | void BKE_pbvh_vert_coords_apply(PBVH *pbvh, const float (*vertCos)[3], const int totvert) | ||||
| { | { | ||||
| if (totvert != pbvh->totvert) { | if (totvert != pbvh->totvert) { | ||||
| BLI_assert(!"PBVH: Given deforming vcos number does not natch PBVH vertex number!"); | BLI_assert_msg(0, "PBVH: Given deforming vcos number does not natch PBVH vertex number!"); | ||||
| return; | return; | ||||
| } | } | ||||
| if (!pbvh->deformed) { | if (!pbvh->deformed) { | ||||
| if (pbvh->verts) { | if (pbvh->verts) { | ||||
| /* if pbvh is not already deformed, verts/faces points to the */ | /* if pbvh is not already deformed, verts/faces points to the */ | ||||
| /* original data and applying new coords to this arrays would lead to */ | /* original data and applying new coords to this arrays would lead to */ | ||||
| /* unneeded deformation -- duplicate verts/faces to avoid this */ | /* unneeded deformation -- duplicate verts/faces to avoid this */ | ||||
| ▲ Show 20 Lines • Show All 260 Lines • Show Last 20 Lines | |||||