| 332 | } |
| 333 | |
| 334 | bool 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 | |
| 357 | std::vector<bool>* Tr2Mesh::GetAllBakedMorphTargetStates() const |
| 358 | { |
nothing calls this directly
no test coverage detected