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

Method GetBoneCount

trinity/Eve/SpaceObject/EveSpaceObject2.cpp:2012–2037  ·  view source on GitHub ↗

-------------------------------------------------------------------------------- Description: This function returns the number of bones in the granny file. Mainly used for pipeline tools to check we don't run too high on this. Return value: Returns the number of bones in the gr2 file --------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

2010// Returns the number of bones in the gr2 file
2011// --------------------------------------------------------------------------------
2012int EveSpaceObject2::GetBoneCount() const
2013{
2014 if( m_animationUpdater->IsUsingCMF() )
2015 {
2016 if( !m_animationUpdater->HasMeshBinding() )
2017 {
2018 return 0;
2019 }
2020 return (int)m_animationUpdater->GetSkeletonBoneIndices().size();
2021 }
2022#if WITH_GRANNY
2023 else
2024 {
2025 if( !m_animationUpdater->m_meshBinding )
2026 {
2027 return 0;
2028 }
2029 return GrannyGetMeshBindingBoneCount( m_animationUpdater->m_meshBinding );
2030 }
2031#else
2032 else
2033 {
2034 return 0;
2035 }
2036#endif
2037}
2038
2039bool EveSpaceObject2::RebuildBoundingSphereInformation()
2040{

Callers

nothing calls this directly

Calls 4

HasMeshBindingMethod · 0.80
sizeMethod · 0.80
ifFunction · 0.50
IsUsingCMFMethod · 0.45

Tested by

no test coverage detected