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

Method FindJoint

trinity/Tr2MeshBase.cpp:151–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151unsigned int Tr2MeshBase::FindJoint( const std::string* boneList, const int numBones, const char* name ) const
152{
153 if( boneList && name )
154 {
155 for( int ix = 0; ix < numBones; ++ix )
156 {
157 if( strcmp( name, boneList[ix].c_str() ) == 0 )
158 {
159 return ix;
160 }
161 }
162 }
163 return 0xffffffff;
164}
165
166bool Tr2MeshBase::BindToRig( const std::string* boneList, const int numBones, TriGeometryResSkeletonData* renderRig, bool forceRebind )
167{

Callers 2

UpdateBonesMethod · 0.45
BindToRigMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected