Clear out materials when a new animation is loaded

This commit is contained in:
KillzXGaming 2019-07-14 10:01:48 -04:00
parent 5089fc0528
commit 8051af0c28
5 changed files with 2 additions and 1 deletions

Binary file not shown.

View file

@ -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)