MCPcopy Create free account
hub / github.com/defold/defold / GetCursorDuration

Function GetCursorDuration

engine/rig/src/rig.cpp:235–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 3

UpdatePlayerFunction · 0.85
ApplyMorphAnimationFunction · 0.85
ApplyAnimationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected