MCPcopy Create free account
hub / github.com/carbonengine/trinity / HasMeshBinding

Method HasMeshBinding

trinity/Tr2GrannyAnimation.cpp:436–453  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

434}
435
436bool Tr2GrannyAnimation::HasMeshBinding() const
437{
438 if( IsUsingCMF() )
439 {
440 return !m_skeletonBoneIndices.empty();
441 }
442#if WITH_GRANNY
443 else
444 {
445 return m_meshBinding != nullptr;
446 }
447#else
448 else
449 {
450 return false;
451 }
452#endif
453}
454
455const std::pair<const int32_t*, size_t> Tr2GrannyAnimation::GetMeshBindingIndices() const
456{

Callers 4

GetBoneCountMethod · 0.80
UpdateSyncronousMethod · 0.80
GetBoneTransformsMethod · 0.80
GetMeshBindingIndicesMethod · 0.80

Calls 3

IsUsingCMFFunction · 0.85
emptyMethod · 0.80
IsUsingCMFMethod · 0.45

Tested by

no test coverage detected