Apply any material edits before exported so it keeps the changes

This commit is contained in:
KillzXGaming 2019-05-29 19:06:31 -04:00
parent 718fe989b9
commit f1164934d2
5 changed files with 5 additions and 0 deletions

Binary file not shown.

View file

@ -254,6 +254,11 @@ namespace Bfres.Structs
} }
private void Export() private void Export()
{ {
if (MaterialU != null)
BfresWiiU.SetMaterial(this, MaterialU, GetResFileU());
else
BfresSwitch.SetMaterial(this, Material);
SaveFileDialog sfd = new SaveFileDialog(); SaveFileDialog sfd = new SaveFileDialog();
sfd.Filter = "Supported Formats|*.bfmat;"; sfd.Filter = "Supported Formats|*.bfmat;";