| 244 | } |
| 245 | |
| 246 | void Tr2SkinnedModel::RebuildCachedData( BlueAsyncRes* p ) |
| 247 | { |
| 248 | m_skeletonIx = NO_SKELETON; |
| 249 | if( m_geometryRes ) |
| 250 | { |
| 251 | unsigned int n = m_geometryRes->GetSkeletonCount(); |
| 252 | for( unsigned int i = 0; i < n; ++i ) |
| 253 | { |
| 254 | TriGeometryResSkeletonData* skel = m_geometryRes->GetSkeletonData( i ); |
| 255 | if( strcmp( skel->m_name.c_str(), m_skeletonName.c_str() ) == 0 ) |
| 256 | { |
| 257 | m_skeletonIx = i; |
| 258 | break; |
| 259 | } |
| 260 | } |
| 261 | } |
| 262 | } |
| 263 | |
| 264 | TriGeometryResSkeletonData* Tr2SkinnedModel::GetSkeleton() const |
| 265 | { |
nothing calls this directly
no test coverage detected