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

Method PrintAllBones

trinity/Tr2SkinnedObject.cpp:360–388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

358}
359
360void 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
390unsigned Tr2SkinnedObject::GetSkeletonTag() const
391{

Callers

nothing calls this directly

Calls 4

emptyMethod · 0.80
sizeMethod · 0.80
GetAnimationBoneListMethod · 0.45
GetSkeletonMethod · 0.45

Tested by

no test coverage detected