| 248 | #endif |
| 249 | |
| 250 | float Tr2GrannyAnimation::FindAnimationDurationByName( const char* name ) const |
| 251 | { |
| 252 | if( IsUsingCMF() ) |
| 253 | { |
| 254 | auto animation = FindCMFAnimationByName( name ); |
| 255 | if( !animation ) |
| 256 | { |
| 257 | return 0; |
| 258 | } |
| 259 | return animation->duration; |
| 260 | } |
| 261 | #if WITH_GRANNY |
| 262 | else |
| 263 | { |
| 264 | auto animation = FindGrannyAnimationByName( name ); |
| 265 | if( !animation ) |
| 266 | { |
| 267 | return 0; |
| 268 | } |
| 269 | return animation->Duration; |
| 270 | } |
| 271 | #else |
| 272 | else |
| 273 | { |
| 274 | return 0; |
| 275 | } |
| 276 | #endif |
| 277 | } |
| 278 | |
| 279 | void Tr2GrannyAnimation::SetSharedGeometryRes( TriGeometryResPtr res ) |
| 280 | { |
no test coverage detected