1
0
mirror of synced 2024-11-14 19:17:39 +01:00

Make sure to reset the materials and texture list for ftxp

This commit is contained in:
KillzXGaming 2019-07-14 13:32:23 -04:00
parent 386f13c0d9
commit 7ab2d9c768
4 changed files with 5 additions and 0 deletions

Binary file not shown.

View File

@ -46,6 +46,8 @@ namespace Bfres.Structs
TexPatternAnim = anim;
FrameCount = anim.FrameCount;
Materials.Clear();
Textures.Clear();
if (anim.TextureRefNames != null)
{
foreach (var tex in anim.TextureRefNames)

View File

@ -146,6 +146,9 @@ namespace FirstPlugin
texPatternAnim.BindIndices = materialAnim.BindIndices;
texPatternAnim.FrameCount = materialAnim.FrameCount;
if (materialAnim.Loop)
texPatternAnim.Flags |= ResU.TexPatternAnimFlags.Looping;
//Fill both lists. On save only one will be used depending on version
foreach (var texName in materialAnim.TextureNames)
{