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

Method PlayCurveSet

trinity/Eve/EveTransform.cpp:427–444  ·  view source on GitHub ↗

-------------------------------------------------------------------------------- Description: Play curve sets with the appropriate name if they exist. --------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

425// Play curve sets with the appropriate name if they exist.
426// --------------------------------------------------------------------------------
427void EveTransform::PlayCurveSet( const std::string& name, const std::string& rangeName )
428{
429 for( auto it = m_curveSets.begin(); it != m_curveSets.end(); it++ )
430 {
431 if( ( *it )->GetName() == name )
432 {
433 if( rangeName.empty() )
434 {
435 ( *it )->ResetTimeRange();
436 ( *it )->Play();
437 }
438 else
439 {
440 ( *it )->PlayTimeRange( rangeName.c_str() );
441 }
442 }
443 }
444}
445
446// --------------------------------------------------------------------------------
447// Description:

Callers 1

StartMethod · 0.45

Calls 7

emptyMethod · 0.80
ResetTimeRangeMethod · 0.80
PlayTimeRangeMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
GetNameMethod · 0.45
PlayMethod · 0.45

Tested by

no test coverage detected