Make sure to reset the materials and texture list for ftxp
This commit is contained in:
parent
386f13c0d9
commit
7ab2d9c768
Binary file not shown.
@ -46,6 +46,8 @@ namespace Bfres.Structs
|
|||||||
TexPatternAnim = anim;
|
TexPatternAnim = anim;
|
||||||
FrameCount = anim.FrameCount;
|
FrameCount = anim.FrameCount;
|
||||||
|
|
||||||
|
Materials.Clear();
|
||||||
|
Textures.Clear();
|
||||||
if (anim.TextureRefNames != null)
|
if (anim.TextureRefNames != null)
|
||||||
{
|
{
|
||||||
foreach (var tex in anim.TextureRefNames)
|
foreach (var tex in anim.TextureRefNames)
|
||||||
|
@ -146,6 +146,9 @@ namespace FirstPlugin
|
|||||||
texPatternAnim.BindIndices = materialAnim.BindIndices;
|
texPatternAnim.BindIndices = materialAnim.BindIndices;
|
||||||
texPatternAnim.FrameCount = materialAnim.FrameCount;
|
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
|
//Fill both lists. On save only one will be used depending on version
|
||||||
foreach (var texName in materialAnim.TextureNames)
|
foreach (var texName in materialAnim.TextureNames)
|
||||||
{
|
{
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user