MCPcopy Create free account
hub / github.com/carbonengine/trinity / FindAnimationDurationByName

Method FindAnimationDurationByName

trinity/Tr2GrannyAnimation.cpp:250–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248#endif
249
250float 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
279void Tr2GrannyAnimation::SetSharedGeometryRes( TriGeometryResPtr res )
280{

Callers 1

AnimationTimeFunction · 0.80

Calls 1

IsUsingCMFFunction · 0.85

Tested by

no test coverage detected