Fix #33171: Sculpt lag in recent builds

Issue was caused by own previous change in PBVH which in this case
lead to unneeded draw buffers rebuilding.
This commit is contained in:
Sergey Sharybin 2012-11-14 08:05:40 +00:00
parent 4cd129bb50
commit 2417967267

@ -1715,11 +1715,14 @@ void BLI_pbvh_grids_update(PBVH *bvh, CCGElem **grids, DMGridAdjacency *gridadj,
bvh->grids = grids;
bvh->gridadj = gridadj;
bvh->gridfaces = gridfaces;
bvh->grid_flag_mats = flagmats;
bvh->grid_hidden = grid_hidden;
for (a = 0; a < bvh->totnode; ++a)
BLI_pbvh_node_mark_rebuild_draw(&bvh->nodes[a]);
if (flagmats != bvh->grid_flag_mats || bvh->grid_hidden != grid_hidden) {
bvh->grid_flag_mats = flagmats;
bvh->grid_hidden = grid_hidden;
for (a = 0; a < bvh->totnode; ++a)
BLI_pbvh_node_mark_rebuild_draw(&bvh->nodes[a]);
}
}
float (*BLI_pbvh_get_vertCos(PBVH * pbvh))[3]