mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2025-02-17 06:18:26 +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
|
//Adjust all the indices properly based on this current index
|
||||||
foreach (var shape in model.shapes)
|
foreach (var shape in model.shapes)
|
||||||
{
|
{
|
||||||
//If there are indices higher than this index, shift them
|
//If there are indices higher or equal than this index, shift them
|
||||||
if (shape.MaterialIndex > CurrentIndex)
|
if (shape.MaterialIndex >= CurrentIndex && shape.MaterialIndex != 0)
|
||||||
{
|
{
|
||||||
shape.MaterialIndex -= 1;
|
shape.MaterialIndex -= 1;
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
Loading…
Add table
Reference in a new issue