| 364 | |
| 365 | #if WITH_GRANNY |
| 366 | granny_file_info* Tr2GrannyAnimation::GetFileInfo() const |
| 367 | { |
| 368 | if( m_grannyRes ) |
| 369 | { |
| 370 | // when using a standalone granny file, it's supposed to have an animation |
| 371 | // track, so complain if it doesn't. |
| 372 | granny_file_info* const fi = GrannyGetFileInfo( m_grannyRes->GetGrannyFile() ); |
| 373 | if( !fi ) |
| 374 | { |
| 375 | CCP_LOGERR( "'%s' is not a valid Granny file", m_resPath.c_str() ); |
| 376 | } |
| 377 | return fi; |
| 378 | } |
| 379 | |
| 380 | // when using a shared geometryRes, there may not be an animation, or the |
| 381 | // granny file isn't loaded yet. Silently fail. |
| 382 | if( m_geometryRes ) |
| 383 | { |
| 384 | return m_geometryRes->GetGrannyInfo(); |
| 385 | } |
| 386 | |
| 387 | return nullptr; |
| 388 | } |
| 389 | #endif |
| 390 | |
| 391 | bool Tr2GrannyAnimation::IsUsingCMF() const |
nothing calls this directly
no test coverage detected