EMotion FX: Deleting a corresponding anim graph when a Reference node is open crashes the Editor (#5612)

Signed-off-by: Benjamin Jillich <jillich@amazon.com>
This commit is contained in:
Benjamin Jillich
2021-11-16 12:45:02 +01:00
committed by GitHub
parent 9a72dd7446
commit 84ba4afc54
@@ -642,6 +642,8 @@ namespace EMotionFX
void AnimGraphReferenceNode::OnAnimGraphAssetChanged()
{
AnimGraphNotificationBus::Broadcast(&AnimGraphNotificationBus::Events::OnReferenceAnimGraphAboutToBeChanged, this);
ReleaseAnimGraphInstances();
AnimGraphNotificationBus::Broadcast(&AnimGraphNotificationBus::Events::OnReferenceAnimGraphChanged, this);