-------------------------------------------------------------------------------- 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 --------------------------------------------------------------------------------
| 2010 | // Returns the number of bones in the gr2 file |
| 2011 | // -------------------------------------------------------------------------------- |
| 2012 | int 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 | |
| 2039 | bool EveSpaceObject2::RebuildBoundingSphereInformation() |
| 2040 | { |
nothing calls this directly
no test coverage detected