Deprecate is_playing_animation (#14387)

# Objective

Fixes #14386

## Solution

- Added the `#[deprecate]` attribute to the `is_playing_animation`
function.

## Testing

The project successfully builds.

---

## Migration Guide

The user will just need to replace functions named
`is_playing_animation` with `animation_is_playing`.
This commit is contained in:
Abe 2024-07-19 04:27:43 -07:00 committed by GitHub
parent 2a6dd3e2e0
commit d8d49fdd13
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -603,6 +603,7 @@ impl AnimationPlayer {
self.active_animations.iter_mut()
}
#[deprecated = "Use `animation_is_playing` instead"]
/// Check if the given animation node is being played.
pub fn is_playing_animation(&self, animation: AnimationNodeIndex) -> bool {
self.active_animations.contains_key(&animation)