Fix material deleting for good (hopefully)

This commit is contained in:
KillzXGaming 2019-06-25 15:40:35 -04:00
parent 7b18d66991
commit c5bf1a0c3e
3 changed files with 2 additions and 2 deletions

Binary file not shown.

View file

@ -161,8 +161,8 @@ namespace Bfres.Structs
//Adjust all the indices properly based on this current index
foreach (var shape in model.shapes)
{
//If there are indices higher than this index, shift them
if (shape.MaterialIndex > CurrentIndex)
//If there are indices higher or equal than this index, shift them
if (shape.MaterialIndex >= CurrentIndex && shape.MaterialIndex != 0)
{
shape.MaterialIndex -= 1;
}