mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-23 13:03:15 +00:00
Update bones properly if a model is removed
This commit is contained in:
parent
31e5f42373
commit
71d91e470d
4 changed files with 3 additions and 0 deletions
Binary file not shown.
Binary file not shown.
|
@ -111,6 +111,7 @@ namespace Bfres.Structs
|
|||
|
||||
if (dialogResult == DialogResult.Yes)
|
||||
{
|
||||
Skeleton.bones.Clear();
|
||||
((BFRES)Parent.Parent).DrawableContainer.Drawables.Remove(Skeleton);
|
||||
|
||||
shapes.Clear();
|
||||
|
@ -120,6 +121,8 @@ namespace Bfres.Structs
|
|||
|
||||
Nodes.Clear();
|
||||
((BFRESGroupNode)Parent).RemoveChild(this);
|
||||
|
||||
LibraryGUI.Instance.UpdateViewport();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue