Update bones properly if a model is removed

This commit is contained in:
KillzXGaming 2019-06-23 11:13:55 -04:00
parent 31e5f42373
commit 71d91e470d
4 changed files with 3 additions and 0 deletions

Binary file not shown.

View file

@ -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();
}
}