| 125 | } |
| 126 | |
| 127 | static void StopAnimations(AnimWorld* world, uint16_t* head_ptr, dmhash_t component_id, dmhash_t property_id) |
| 128 | { |
| 129 | if (head_ptr != 0x0) |
| 130 | { |
| 131 | uint16_t index = *head_ptr; |
| 132 | while (index != INVALID_INDEX) |
| 133 | { |
| 134 | Animation* anim = &world->m_Animations[world->m_AnimMap[index]]; |
| 135 | if (anim->m_ComponentId == component_id && (property_id == 0 || anim->m_PropertyId == property_id)) |
| 136 | { |
| 137 | StopAnimation(anim, false); |
| 138 | } |
| 139 | index = anim->m_Next; |
| 140 | } |
| 141 | } |
| 142 | } |
| 143 | |
| 144 | static void StopAllAnimations(AnimWorld* world, uint16_t* head_ptr) |
| 145 | { |
no test coverage detected