| 317 | } |
| 318 | |
| 319 | bool Tr2GrannyAnimation::Initialize() |
| 320 | { |
| 321 | Cleanup(); |
| 322 | |
| 323 | if( m_grannyRes ) |
| 324 | { |
| 325 | m_grannyRes->RemoveNotifyTarget( this ); |
| 326 | m_grannyRes.Unlock(); |
| 327 | } |
| 328 | |
| 329 | if( !m_geometryRes && !m_resPath.empty() ) |
| 330 | { |
| 331 | BeResMan->GetResource( m_resPath.c_str(), "raw", BlueInterfaceIID<TriGrannyRes>(), (void**)&m_grannyRes ); |
| 332 | } |
| 333 | |
| 334 | if( m_grannyRes ) |
| 335 | { |
| 336 | m_grannyRes->AddNotifyTarget( this ); |
| 337 | } |
| 338 | |
| 339 | m_boneBounds.clear(); |
| 340 | |
| 341 | return true; |
| 342 | } |
| 343 | |
| 344 | void Tr2GrannyAnimation::LoadSecondaryResPath( const std::string& val ) |
| 345 | { |
nothing calls this directly
no test coverage detected