mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2025-02-16 22:08:26 +00:00
Clear out materials when a new animation is loaded
This commit is contained in:
parent
5089fc0528
commit
8051af0c28
5 changed files with 2 additions and 1 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -339,6 +339,8 @@ namespace Bfres.Structs
|
|||
CanReplace = true;
|
||||
CanExport = true;
|
||||
CanDelete = true;
|
||||
|
||||
Materials.Clear();
|
||||
}
|
||||
|
||||
protected void NewAction(object sender, EventArgs e) { NewMaterialAnim(); }
|
||||
|
@ -370,7 +372,6 @@ namespace Bfres.Structs
|
|||
MaterialAnim = anim;
|
||||
FrameCount = MaterialAnim.FrameCount;
|
||||
Text = GetString(anim.Name);
|
||||
|
||||
if (anim.TextureNames != null)
|
||||
{
|
||||
foreach (var name in anim.TextureNames)
|
||||
|
|
Binary file not shown.
Loading…
Add table
Reference in a new issue