| 233 | } |
| 234 | |
| 235 | static float GetCursorDuration(RigPlayer* player, const dmRigDDF::RigAnimation* animation) |
| 236 | { |
| 237 | if (!animation) |
| 238 | { |
| 239 | return 0.0f; |
| 240 | } |
| 241 | |
| 242 | float duration = animation->m_Duration; |
| 243 | if (player->m_Playback == dmRig::PLAYBACK_ONCE_PINGPONG) |
| 244 | { |
| 245 | duration *= 2.0f; |
| 246 | } |
| 247 | return duration; |
| 248 | } |
| 249 | |
| 250 | static void PostEventsInterval(HRigInstance instance, const dmRigDDF::RigAnimation* animation, float start_cursor, float end_cursor, float duration, bool backwards, float blend_weight) |
| 251 | { |
no outgoing calls
no test coverage detected