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

Method RebuildCachedData

trinity/Tr2SkinnedModel.cpp:246–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244}
245
246void 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
264TriGeometryResSkeletonData* Tr2SkinnedModel::GetSkeleton() const
265{

Callers

nothing calls this directly

Calls 2

GetSkeletonCountMethod · 0.80
GetSkeletonDataMethod · 0.80

Tested by

no test coverage detected