mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-10 07:04:36 +00:00
BFRES : Fix clearing shape LODs from the menu
This commit is contained in:
parent
9c9c9126a5
commit
66f429a555
1 changed files with 3 additions and 2 deletions
|
@ -375,10 +375,11 @@ namespace Bfres.Structs
|
|||
DisplayLODIndex = 0; //Force index to prevent errors
|
||||
|
||||
//Clear all but first base mesh
|
||||
for (int i = 0; i < lodMeshes.Count; i++)
|
||||
var meshes = lodMeshes.ToList();
|
||||
for (int i = 0; i < meshes.Count; i++)
|
||||
{
|
||||
if (i != 0)
|
||||
lodMeshes.Remove(lodMeshes[i]);
|
||||
lodMeshes.Remove(meshes[i]);
|
||||
}
|
||||
|
||||
CreateNewBoundingBoxes();
|
||||
|
|
Loading…
Reference in a new issue