and one more fix for material animations
This commit is contained in:
parent
a02267c692
commit
9d7688cbf6
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user