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

Method GetAnimationTransforms

trinity/Tr2GrannyAnimation.cpp:1815–1835  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1813}
1814
1815const Matrix* Tr2GrannyAnimation::GetAnimationTransforms()
1816{
1817 if( IsUsingCMF() )
1818 {
1819 if( !m_worldTransforms.empty() )
1820 {
1821 return m_worldTransforms.data();
1822 }
1823 }
1824#if WITH_GRANNY
1825 else
1826 {
1827 if( m_worldPose )
1828 {
1829 return reinterpret_cast<Matrix*>( GrannyGetWorldPose4x4Array( m_worldPose ) );
1830 }
1831 }
1832#endif
1833
1834 return NULL;
1835}
1836
1837void Tr2GrannyAnimation::Cleanup()
1838{

Callers 5

UpdateBonesMethod · 0.45
UpdateVisibilityMethod · 0.45
UpdateAsyncronousMethod · 0.45
RenderDebugInfoMethod · 0.45
GetBoneTransformsMethod · 0.45

Calls 3

IsUsingCMFFunction · 0.85
emptyMethod · 0.80
ifFunction · 0.50

Tested by

no test coverage detected