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

Method FindJoint

trinity/Resources/TriGeometryRes.cpp:1804–1816  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1802}
1803
1804unsigned int TriGeometryResSkeletonData::FindJoint( const char* name ) const
1805{
1806 unsigned int jointCount = (unsigned int)m_joints.size();
1807 for( unsigned int ix = 0; ix < jointCount; ++ix )
1808 {
1809 if( strcmp( name, m_joints[ix].m_name.c_str() ) == 0 )
1810 {
1811 return ix;
1812 }
1813 }
1814
1815 return 0xffffffff;
1816}
1817
1818void TriGeometryRes::Reload()
1819{

Callers 2

RebuildCachedDataMethod · 0.45

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected