1
0
mirror of synced 2025-01-31 12:23:52 +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 else
{ {
FMAA fmaaPrm = new FMAA(new ResNX.MaterialAnim(), MaterialAnimation.AnimationType.ShaderParam); FMAA fmaaPrm = new FMAA(new ResNX.MaterialAnim(), MaterialAnimation.AnimationType.ShaderParam);
fmaaPrm.Text = ResourceName;
fmaaPrm.Replace(FileName); fmaaPrm.Replace(FileName);
Nodes.Add(fmaaPrm); Nodes.Add(fmaaPrm);
} }
@ -319,6 +320,7 @@ namespace Bfres.Structs
else else
{ {
FMAA fmaaClr = new FMAA(new ResNX.MaterialAnim(), MaterialAnimation.AnimationType.Color); FMAA fmaaClr = new FMAA(new ResNX.MaterialAnim(), MaterialAnimation.AnimationType.Color);
fmaaClr.Text = ResourceName;
fmaaClr.Replace(FileName); fmaaClr.Replace(FileName);
Nodes.Add(fmaaClr); Nodes.Add(fmaaClr);
} }
@ -334,6 +336,7 @@ namespace Bfres.Structs
else else
{ {
FMAA fmaaSrt = new FMAA(new ResNX.MaterialAnim(), MaterialAnimation.AnimationType.TextureSrt); FMAA fmaaSrt = new FMAA(new ResNX.MaterialAnim(), MaterialAnimation.AnimationType.TextureSrt);
fmaaSrt.Text = ResourceName;
fmaaSrt.Replace(FileName); fmaaSrt.Replace(FileName);
Nodes.Add(fmaaSrt); Nodes.Add(fmaaSrt);
} }
@ -366,6 +369,7 @@ namespace Bfres.Structs
else else
{ {
FMAA fmaaVis = new FMAA(new ResNX.MaterialAnim(), MaterialAnimation.AnimationType.Visibilty); FMAA fmaaVis = new FMAA(new ResNX.MaterialAnim(), MaterialAnimation.AnimationType.Visibilty);
fmaaVis.Text = ResourceName;
fmaaVis.Replace(FileName); fmaaVis.Replace(FileName);
Nodes.Add(fmaaVis); Nodes.Add(fmaaVis);
} }

View File

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