Fix #116351: Assert in sculpt mode with no faces

This commit is contained in:
Hans Goudey
2023-12-19 10:56:25 -05:00
parent b6fab947d1
commit a0f8a6dae8

View File

@@ -1306,6 +1306,9 @@ void update_bounds(PBVH &pbvh, int flag)
{
Vector<PBVHNode *> nodes = search_gather(
&pbvh, [&](PBVHNode &node) { return update_search(&node, flag); });
if (nodes.is_empty()) {
return;
}
if (flag & (PBVH_UpdateBB | PBVH_UpdateOriginalBB | PBVH_UpdateRedraw)) {
pbvh_update_BB_redraw(&pbvh, nodes, flag);