1
0
mirror of synced 2025-01-19 01:14:08 +01:00

and one more fix for material animations

This commit is contained in:
KillzXGaming 2019-06-01 19:52:45 -04:00
parent a02267c692
commit 9d7688cbf6
6 changed files with 5 additions and 1 deletions

Binary file not shown.

View File

@ -304,6 +304,7 @@ namespace Bfres.Structs
else
{
FMAA fmaaPrm = new FMAA(new ResNX.MaterialAnim(), MaterialAnimation.AnimationType.ShaderParam);
fmaaPrm.Text = ResourceName;
fmaaPrm.Replace(FileName);
Nodes.Add(fmaaPrm);
}
@ -319,6 +320,7 @@ namespace Bfres.Structs
else
{
FMAA fmaaClr = new FMAA(new ResNX.MaterialAnim(), MaterialAnimation.AnimationType.Color);
fmaaClr.Text = ResourceName;
fmaaClr.Replace(FileName);
Nodes.Add(fmaaClr);
}
@ -334,6 +336,7 @@ namespace Bfres.Structs
else
{
FMAA fmaaSrt = new FMAA(new ResNX.MaterialAnim(), MaterialAnimation.AnimationType.TextureSrt);
fmaaSrt.Text = ResourceName;
fmaaSrt.Replace(FileName);
Nodes.Add(fmaaSrt);
}
@ -366,6 +369,7 @@ namespace Bfres.Structs
else
{
FMAA fmaaVis = new FMAA(new ResNX.MaterialAnim(), MaterialAnimation.AnimationType.Visibilty);
fmaaVis.Text = ResourceName;
fmaaVis.Replace(FileName);
Nodes.Add(fmaaVis);
}

View File

@ -710,7 +710,7 @@ namespace Bfres.Structs
{
string ext = Utils.GetExtension(FileName);
if (ext == ".bftxp")
if (ext == ".bfmaa")
{
MaterialAnim.Import(FileName);
MaterialAnim.Name = Text;