Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: apply applyCrossFade to correct entity #7665

Conversation

hannojg
Copy link
Contributor

@hannojg hannojg commented Mar 13, 2024

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.

@pixelflinger pixelflinger added the internal Issue/PR does not affect clients label Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Issue/PR does not affect clients
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants