MCPcopy Create free account
hub / github.com/MergHQ/CRYENGINE / GetModelAnimationHeader

Method GetModelAnimationHeader

Code/CryEngine/CryAnimation/ModelAnimationSet.cpp:405–421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

403}
404
405const ModelAnimationHeader* CAnimationSet::GetModelAnimationHeader(int32 i) const
406{
407 DEFINE_PROFILER_FUNCTION();
408
409 int32 numAnimation = (int32)m_arrAnimations.size();
410 if (numAnimation == 0)
411 return 0;
412
413 if (i < 0 || i >= numAnimation)
414 {
415 if (Console::GetInst().ca_AnimWarningLevel > 0)
416 gEnv->pLog->LogError("Invalid Animation ID: %d for Model: %s", i, m_strSkeletonFilePath.c_str());
417
418 return 0;
419 }
420 return &m_arrAnimations[i]; //the animation-asset exists
421}
422
423//----------------------------------------------------------------------------------
424// Returns the index of the animation in the set, -1 if there's no such animation

Callers 15

RenderBlendSpaceMethod · 0.80
ParameterizerMethod · 0.80
VisualizeBlendSpaceMethod · 0.80
IsAnimationLoadedFunction · 0.80
UnloadAnimationAssetsMethod · 0.80
ManualSeekAnimationMethod · 0.80
StartAnimationByIdMethod · 0.80
AnimationToQueueMethod · 0.80
ExecuteMethod · 0.80
LoadFromXMLMethod · 0.80
Export2HTRMethod · 0.80
LoadAnimationsMethod · 0.80

Calls 3

sizeMethod · 0.45
LogErrorMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected