Fix #120179: Assert failure after sculpt trim operation
commit768c68f19b82c311fd67544f45e3edfd514b4075
authorHans Goudey <hans@blender.org>
Tue, 2 Apr 2024 21:58:36 +0000 (2 17:58 -0400)
committerHans Goudey <hans@blender.org>
Tue, 2 Apr 2024 21:58:36 +0000 (2 17:58 -0400)
tree4fdd3837056f5600b3b5ba98b1e318b61f709322
parentd00130220064d8ce7cdaf1cca1ea56c9fbaefb0e
Fix #120179: Assert failure after sculpt trim operation

Seems to be caused by c53e220aef. I didn't think our PBVH building would
ever create a node with no triangles, but I guess I was wrong, since I
checked and the PBVH is clearly being rebuilt after the trim operation,
so it seems there isn't anything else weird going on here.

Rather than trying to figure that out, I'll just add the empty check
back here. Eventually we should completely replace the algorithm that
creates the PBVH nodes anyway.
source/blender/draw/intern/draw_pbvh.cc