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

Method GetBakedMorphTarget

trinity/Tr2Mesh.cpp:334–355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332}
333
334bool Tr2Mesh::GetBakedMorphTarget( const char* name )
335{
336 if( !GetGeometryResource() )
337 {
338 return false;
339 }
340
341 auto mesh = GetGeometryResource()->GetMeshLod( GetMeshIndex(), 0 );
342 if( !mesh )
343 {
344 return false;
345 }
346
347 for( int i = 0; i < mesh->m_morphTargetNames.size(); i++ )
348 {
349 if( mesh->m_morphTargetNames[i] == name )
350 {
351 return mesh->m_isBakedMorphTarget[i];
352 }
353 }
354 return false;
355}
356
357std::vector<bool>* Tr2Mesh::GetAllBakedMorphTargetStates() const
358{

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.80
GetMeshLodMethod · 0.45

Tested by

no test coverage detected