| 277 | } |
| 278 | |
| 279 | void Tr2GrannyAnimation::SetSharedGeometryRes( TriGeometryResPtr res ) |
| 280 | { |
| 281 | if( res == m_geometryRes ) |
| 282 | { |
| 283 | return; |
| 284 | } |
| 285 | if( m_geometryRes ) |
| 286 | { |
| 287 | m_geometryRes->RemoveNotifyTarget( this ); |
| 288 | } |
| 289 | Cleanup(); |
| 290 | m_geometryRes = res; |
| 291 | if( m_geometryRes ) |
| 292 | { |
| 293 | m_geometryRes->AddNotifyTarget( this ); |
| 294 | } |
| 295 | m_resPath = ""; |
| 296 | } |
| 297 | |
| 298 | TriGeometryRes* Tr2GrannyAnimation::GetSharedGeometryRes() const |
| 299 | { |
no test coverage detected