Customer PR. Released unused raw asset data in EmotionFX asset to reclaim memory after asset initialization

This commit is contained in:
Walters
2021-04-19 17:08:15 -07:00
parent 6924621cc1
commit b9c618329a
5 changed files with 11 additions and 1 deletions
@@ -232,6 +232,7 @@ namespace EMotionFX
// Set motion set's motion load callback, so if EMotion FX queries back for a motion,
// we can pull the one managed through an AZ::Asset.
assetData->m_emfxMotionSet->SetCallback(aznew CustomMotionSetCallback(asset));
assetData->ReleaseEmotionFXData();
return true;
}