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

AnimationMixer: Fix non-numeric misc type (Resource, Dictionary & etc.) values cannot be blended with UpdateMode.UPDATE_CONTINUOUS #83030

Merged
merged 1 commit into from
Oct 9, 2023

Conversation

TokageItLab
Copy link
Member

@TokageItLab TokageItLab commented Oct 9, 2023

Closes #82949
Closes #82905

If you try to use UpdateMode.UPDATE_CONTINUOUS with a non-numeric Misc Type value, it will fail to apply the value because there is currently no way to blend using UpdateMode.UPDATE_CONTINUOUS.

I believe that in the future we should convert them to have weight as Pair<Variant value, float weight> in the similar way that bool values are converted to 0 or 1 and blended, but for now it will force UpdateMode.UPDATE_DISCRETE instead of UpdateMode.UPDATE_CONTINUOUS since it is useless now.

@TokageItLab TokageItLab added this to the 4.2 milestone Oct 9, 2023
@TokageItLab TokageItLab requested a review from a team as a code owner October 9, 2023 08:19
@TokageItLab TokageItLab changed the title Patch fix for AnimationMixer: misc type values cannot be blended Patch fix for AnimationMixer: misc type (Resource, Dictionary etc.) values cannot be blended with UpdateMode.UPDATE_DISCRETE Oct 9, 2023
@TokageItLab TokageItLab changed the title Patch fix for AnimationMixer: misc type (Resource, Dictionary etc.) values cannot be blended with UpdateMode.UPDATE_DISCRETE Patch fix for AnimationMixer: misc type (Resource, Dictionary etc.) values cannot be blended with UpdateMode.UPDATE_DISCRETE Oct 9, 2023
@TokageItLab TokageItLab changed the title Patch fix for AnimationMixer: misc type (Resource, Dictionary etc.) values cannot be blended with UpdateMode.UPDATE_DISCRETE Patch fix for AnimationMixer: misc type (Resource, Dictionary & etc.) values cannot be blended with UpdateMode.UPDATE_DISCRETE Oct 9, 2023
@TokageItLab TokageItLab changed the title Patch fix for AnimationMixer: misc type (Resource, Dictionary & etc.) values cannot be blended with UpdateMode.UPDATE_DISCRETE Patch fix for AnimationMixer: misc type (Resource, Dictionary & etc.) values cannot be blended with UpdateMode. UPDATE_CONTINUOUS Oct 9, 2023
@TokageItLab TokageItLab changed the title Patch fix for AnimationMixer: misc type (Resource, Dictionary & etc.) values cannot be blended with UpdateMode. UPDATE_CONTINUOUS Patch fix for AnimationMixer: misc type (Resource, Dictionary & etc.) values cannot be blended with UpdateMode. UPDATE_CONTINUOUS Oct 9, 2023
@TokageItLab TokageItLab changed the title Patch fix for AnimationMixer: misc type (Resource, Dictionary & etc.) values cannot be blended with UpdateMode. UPDATE_CONTINUOUS Patch fix for AnimationMixer: misc type (Resource, Dictionary & etc.) values cannot be blended with UpdateMode.UPDATE_CONTINUOUS Oct 9, 2023
@TokageItLab TokageItLab changed the title Patch fix for AnimationMixer: misc type (Resource, Dictionary & etc.) values cannot be blended with UpdateMode.UPDATE_CONTINUOUS Patch fix for AnimationMixer: non-numerical misc type (Resource, Dictionary & etc.) values cannot be blended with UpdateMode.UPDATE_CONTINUOUS Oct 9, 2023
@akien-mga akien-mga changed the title Patch fix for AnimationMixer: non-numerical misc type (Resource, Dictionary & etc.) values cannot be blended with UpdateMode.UPDATE_CONTINUOUS AnimationMixer: Fix non-numerical misc type (Resource, Dictionary & etc.) values cannot be blended with UpdateMode.UPDATE_CONTINUOUS Oct 9, 2023
@akien-mga akien-mga changed the title AnimationMixer: Fix non-numerical misc type (Resource, Dictionary & etc.) values cannot be blended with UpdateMode.UPDATE_CONTINUOUS AnimationMixer: Fix non-numeric misc type (Resource, Dictionary & etc.) values cannot be blended with UpdateMode.UPDATE_CONTINUOUS Oct 9, 2023
@akien-mga akien-mga merged commit 1e55eeb into godotengine:master Oct 9, 2023
15 checks passed
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Texture keyframe ignored in continous update mode 4.2 dev6 node AnimationPlayer Play Not effective
2 participants