| 358 | } |
| 359 | |
| 360 | void Tr2SkinnedObject::PrintAllBones() |
| 361 | { |
| 362 | if( !m_animationUpdater || !m_visualModel ) |
| 363 | { |
| 364 | return; |
| 365 | } |
| 366 | |
| 367 | unsigned numBones = 0; |
| 368 | const std::string* const boneList = m_animationUpdater->GetAnimationBoneList( numBones ); |
| 369 | |
| 370 | if( numBones && boneList ) |
| 371 | { |
| 372 | CCP_LOG( "Animation bones:" ); |
| 373 | for( unsigned i = 0; i != numBones; ++i ) |
| 374 | { |
| 375 | CCP_LOG( "%d - %s", i, boneList[i].c_str() ); |
| 376 | } |
| 377 | } |
| 378 | |
| 379 | TriGeometryResSkeletonData* skel = m_visualModel->GetSkeleton(); |
| 380 | if( skel && !skel->m_joints.empty() ) |
| 381 | { |
| 382 | CCP_LOG( "RenderRig bones:" ); |
| 383 | for( unsigned int i = 0; i < skel->m_joints.size(); ++i ) |
| 384 | { |
| 385 | CCP_LOG( "%d - %s", i, skel->m_joints[i].m_name.c_str() ); |
| 386 | } |
| 387 | } |
| 388 | } |
| 389 | |
| 390 | unsigned Tr2SkinnedObject::GetSkeletonTag() const |
| 391 | { |
nothing calls this directly
no test coverage detected