Skip to content

Commit

Permalink
Do not create a collision box if the model has no vertices (?).
Browse files Browse the repository at this point in the history
  • Loading branch information
Tokeiburu committed Dec 28, 2024
1 parent 17a23d5 commit 6b2658d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions browedit/components/Rsw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -979,6 +979,9 @@ void Rsw::recalculateQuadtree(QuadTreeNode* node)
{
auto vertices = collider->getAllVerticesWorldSpace();

if (vertices.size() == 0)
return;

// Translate coords with gnd coords instead, it makes comparisons much easier later
for (auto& v : vertices) {
v.x = v.x - gnd->width * 5.0f;
Expand Down

0 comments on commit 6b2658d

Please sign in to comment.