| 403 | } |
| 404 | |
| 405 | const 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 |
no test coverage detected