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

Animation player fixes #5238

Merged

Conversation

metalgearsloth
Copy link
Contributor

Ensures the event always goes out even if the animation is stopped.

Ensures the event always goes out even if the animation is stopped.
@metalgearsloth metalgearsloth merged commit b409731 into space-wizards:master Jun 16, 2024
3 checks passed
@metalgearsloth metalgearsloth deleted the 2024-06-16-player branch June 16, 2024 15:47
PJB3005 added a commit that referenced this pull request Jun 25, 2024
Content has multiple cases where AnimationCompletedEvent is used to loop an animation. #5238 broke some of these by making this event raised even when manually removed.

Luckily most cases in content tie the animation looping to the presence of a component, so the component getting removed means there's nothing to refresh the loop. LightBehavior is not as fortunate however, causing bugs like space-wizards/space-station-14#29144

This boolean allows looping code to properly distinguish the event, so it won't try to restart an animation after removing it directly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants