editor fix: BVH must be rebuilt after LODgen

This commit is contained in:
Turánszki János
2025-01-21 09:08:40 +01:00
parent 32006f3d10
commit a19962fa77
+5
View File
@@ -989,6 +989,11 @@ void MeshWindow::Create(EditorComponent* _editor)
mesh->subsets = subsets;
mesh->CreateRenderData();
if (mesh->IsBVHEnabled())
{
mesh->BuildBVH();
}
}
SetEntity(entity, subset);
});