mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-23 13:03:15 +00:00
Fix material deleting for good (hopefully)
This commit is contained in:
parent
7b18d66991
commit
c5bf1a0c3e
3 changed files with 2 additions and 2 deletions
Binary file not shown.
|
@ -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;
|
||||
}
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue