Skip to content

Commit

Permalink
editor fix: BVH must be rebuilt after LODgen
Browse files Browse the repository at this point in the history
  • Loading branch information
turanszkij committed Jan 21, 2025
1 parent 32006f3 commit a19962f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Editor/MeshWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -989,6 +989,11 @@ void MeshWindow::Create(EditorComponent* _editor)
mesh->subsets = subsets;

mesh->CreateRenderData();

if (mesh->IsBVHEnabled())
{
mesh->BuildBVH();
}
}
SetEntity(entity, subset);
});
Expand Down

0 comments on commit a19962f

Please sign in to comment.