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

Function FindAnimation

engine/rig/src/rig.cpp:97–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95 }
96
97 static const dmRigDDF::RigAnimation* FindAnimation(const dmRigDDF::AnimationSet* anim_set, dmhash_t animation_id)
98 {
99 if(anim_set == 0x0)
100 return 0x0;
101 uint32_t anim_count = anim_set->m_Animations.m_Count;
102 for (uint32_t i = 0; i < anim_count; ++i)
103 {
104 const dmRigDDF::RigAnimation* anim = &anim_set->m_Animations[i];
105 if (anim->m_Id == animation_id)
106 {
107 return anim;
108 }
109 }
110 return 0x0;
111 }
112
113 static RigPlayer* GetPlayer(HRigInstance instance)
114 {

Callers 1

PlayAnimationFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected