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

Method IsBakedMorph

trinity/Tr2Mesh.cpp:264–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262}
263
264bool Tr2Mesh::IsBakedMorph( int index ) const
265{
266 if( !GetGeometryResource() )
267 {
268 return false;
269 }
270
271 auto mesh = GetGeometryResource()->GetMeshLod( GetMeshIndex(), 0 );
272
273 if( !mesh )
274 {
275 return false;
276 }
277
278 return mesh->m_isBakedMorphTarget[index];
279}
280
281void Tr2Mesh::SetMorphTargetWeight( const char* name, float weight )
282{

Callers 1

Calls 1

GetMeshLodMethod · 0.45

Tested by

no test coverage detected