mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2025-02-16 22:08:26 +00:00
Fix updating editors for animations that are imported
This commit is contained in:
parent
0d0ad3c461
commit
7f8183ca2f
7 changed files with 7 additions and 8 deletions
|
@ -1326,8 +1326,7 @@ namespace Bfres.Structs
|
|||
}
|
||||
|
||||
public void UpdateEditor(){
|
||||
if (Parent != null)
|
||||
((BFRES)Parent.Parent).LoadEditors(this);
|
||||
((BFRES)Parent?.Parent)?.LoadEditors(this);
|
||||
}
|
||||
|
||||
private void CreateSkeleton()
|
||||
|
|
|
@ -76,7 +76,7 @@ namespace Bfres.Structs
|
|||
public override void OnClick(TreeView treeView) => UpdateEditor();
|
||||
|
||||
public void UpdateEditor(){
|
||||
((BFRES)Parent.Parent.Parent).LoadEditors(this);
|
||||
((BFRES)Parent?.Parent?.Parent)?.LoadEditors(this);
|
||||
}
|
||||
|
||||
public override void Export(string FileName)
|
||||
|
|
|
@ -86,7 +86,7 @@ namespace Bfres.Structs
|
|||
public override void OnClick(TreeView treeView) => UpdateEditor();
|
||||
|
||||
public void UpdateEditor(){
|
||||
((BFRES)Parent.Parent.Parent).LoadEditors(this);
|
||||
((BFRES)Parent?.Parent?.Parent)?.LoadEditors(this);
|
||||
}
|
||||
|
||||
public FSHA(ResU.ShapeAnim anim) { LoadAnim(anim); }
|
||||
|
|
|
@ -40,7 +40,7 @@ namespace Bfres.Structs
|
|||
public override void OnClick(TreeView treeView) => UpdateEditor();
|
||||
|
||||
public void UpdateEditor(){
|
||||
((BFRES)Parent.Parent.Parent).LoadEditors(this);
|
||||
((BFRES)Parent?.Parent?.Parent)?.LoadEditors(this);
|
||||
}
|
||||
|
||||
public ResFile GetResFile() {
|
||||
|
|
|
@ -109,7 +109,7 @@ namespace Bfres.Structs
|
|||
|
||||
public void UpdateEditor() {
|
||||
|
||||
((BFRES)Parent.Parent.Parent).LoadEditors(this);
|
||||
((BFRES)Parent?.Parent?.Parent)?.LoadEditors(this);
|
||||
}
|
||||
|
||||
public override string ExportFilter => FileFilters.GetFilter(typeof(FSKA),null, true);
|
||||
|
|
|
@ -16,7 +16,7 @@ namespace Bfres.Structs
|
|||
public override void OnClick(TreeView treeView) => UpdateEditor();
|
||||
|
||||
public void UpdateEditor() {
|
||||
((BFRES)Parent.Parent.Parent).LoadEditors(this);
|
||||
((BFRES)Parent?.Parent?.Parent)?.LoadEditors(this);
|
||||
}
|
||||
|
||||
public ResFile GetResFile() {
|
||||
|
|
|
@ -42,7 +42,7 @@ namespace Bfres.Structs
|
|||
public override void OnClick(TreeView treeView) => UpdateEditor();
|
||||
|
||||
public void UpdateEditor(){
|
||||
((BFRES)Parent.Parent.Parent).LoadEditors(this);
|
||||
((BFRES)Parent?.Parent?.Parent)?.LoadEditors(this);
|
||||
}
|
||||
|
||||
public override string ExportFilter => FileFilters.GetFilter(typeof(FVIS));
|
||||
|
|
Loading…
Add table
Reference in a new issue