A while ago an API was added that supports creating multiple instances from one asset.
Due to that that instance used in an Animator might not be asset->mRoot, but another instance. To account for that.
The applyAnimation function handled this correctly, however the applyCrossFade wasn't updated and was still using asset->mRoot.
This PR adds a conditional to either use the provided instance in applyCrossFade or to use the asset's root entity.
A while ago an API was added that supports creating multiple instances from one asset.
Due to that that instance used in an Animator might not be
asset->mRoot
, but another instance. To account for that. TheapplyAnimation
function handled this correctly, however theapplyCrossFade
wasn't updated and was still usingasset->mRoot
.This PR adds a conditional to either use the provided instance in
applyCrossFade
or to use the asset's root entity.