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

Method GetSkeleton

trinity/Tr2GrannyAnimation.cpp:1410–1420  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1408#endif
1409
1410const cmf::Skeleton* Tr2GrannyAnimation::GetSkeleton() const
1411{
1412 CCP_ASSERT( IsUsingCMF() );
1413
1414 auto cmfData = GetCMFData();
1415 if( cmfData && m_modelIndex >= 0 && m_modelIndex < cmfData->skeletons.size() )
1416 {
1417 return &cmfData->skeletons[m_modelIndex];
1418 }
1419 return nullptr;
1420}
1421
1422const std::vector<Matrix>& Tr2GrannyAnimation::GetWorldTransforms() const
1423{

Callers 2

GetBoneTransformsMethod · 0.45
CreateBindingMethod · 0.45

Calls 2

IsUsingCMFFunction · 0.85
sizeMethod · 0.80

Tested by

no test coverage detected