| 219 | } |
| 220 | |
| 221 | granny_file_info* Tr2GStateAnimation::GetFileInfo() const |
| 222 | { |
| 223 | if( m_grannyRes ) |
| 224 | { |
| 225 | // when using a standalone granny file, it's supposed to have an animation |
| 226 | // track, so complain if it doesn't. |
| 227 | granny_file_info* const fi = GrannyGetFileInfo( m_grannyRes->GetGrannyFile() ); |
| 228 | if( !fi ) |
| 229 | { |
| 230 | CCP_LOGERR( "'%s' is not a valid Granny file", m_resPath.c_str() ); |
| 231 | } |
| 232 | return fi; |
| 233 | } |
| 234 | |
| 235 | // when using a shared geometryRes, there may not be an animation, or the |
| 236 | // granny file isn't loaded yet. Silently fail. |
| 237 | if( m_geometryRes ) |
| 238 | { |
| 239 | return m_geometryRes->GetGrannyInfo(); |
| 240 | } |
| 241 | |
| 242 | return nullptr; |
| 243 | } |
| 244 | |
| 245 | |
| 246 | void Tr2GStateAnimation::RebuildCachedData( BlueAsyncRes* p ) |
nothing calls this directly
no test coverage detected