You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 10, 2022. It is now read-only.
The null check will always return the fulfilled original promise from a previous playback and so when an animation is played the next time again, it will immediately trigger the promise.
This is my workaround to "clear" the animation before playing again:
public static FixFinishedCallback(animation: MRE.Animation) {
const animationToFix = animation as any;
animationToFix._finished = null;
}
I think to solve the issue, the code in the if branch should only return the original promise as long it has not been resolved/fulfilled.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
mixed-reality-extension-sdk/packages/sdk/src/animation/animation.ts
Line 286 in ad6028f
The null check will always return the fulfilled original promise from a previous playback and so when an animation is played the next time again, it will immediately trigger the promise.
This is my workaround to "clear" the animation before playing again:
I think to solve the issue, the code in the if branch should only return the original promise as long it has not been resolved/fulfilled.
The text was updated successfully, but these errors were encountered: