| 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 | { |