Fix: Dynamic topology mesh invisible after recent commit

Mistake in 7e0029fb65.
I assumed the BMesh and Mesh PBVH building process was
more similar than they really are.
This commit is contained in:
Hans Goudey
2024-08-20 16:08:57 -04:00
parent 7e0029fb65
commit 65efd7f033

View File

@@ -2189,6 +2189,9 @@ static void pbvh_bmesh_create_nodes_fast_recursive(Tree *pbvh,
n->bounds_orig_ = n->bounds_;
/* Build GPU buffers for new node and update vertex normals. */
BKE_pbvh_node_mark_rebuild_draw(n);
BKE_pbvh_node_fully_hidden_set(n, !has_visible);
n->flag_ |= PBVH_UpdateNormals;
}