Skip to content

Commit af220b3

Browse files
committed
Fixes to support bfres material animation replacing as json
1 parent e4bfe11 commit af220b3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Plugins/CafeLibrary/Bfres/Animations/BfresMaterialAnim.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,11 +229,13 @@ private void ReplaceAction()
229229
var dlg = new ImguiFileDialog();
230230
dlg.FileName = $"{MaterialAnim.Name}.bfmaa";
231231
dlg.AddFilter(".bfmaa", ".bfmaa");
232-
// dlg.AddFilter(".json", ".json");
232+
dlg.AddFilter(".json", ".json");
233233

234234
if (dlg.ShowDialog())
235235
{
236236
MaterialAnim.Import(dlg.FilePath, ResFile);
237+
MaterialAnim.Name = this.Name;
238+
237239
Reload(MaterialAnim);
238240
}
239241
}

Track Studio/Lib/BfresLibrary.dll

2 KB
Binary file not shown.

0 commit comments

Comments
 (0)