| 680 | } |
| 681 | |
| 682 | void EveChildContainer::PlayCurveSet( const std::string& name, const std::string& rangeName ) |
| 683 | { |
| 684 | if( !IsUpdating() ) |
| 685 | { |
| 686 | return; |
| 687 | } |
| 688 | |
| 689 | for( auto it = m_curveSets.begin(); it != m_curveSets.end(); it++ ) |
| 690 | { |
| 691 | if( ( *it )->GetName() == name ) |
| 692 | { |
| 693 | if( rangeName.empty() ) |
| 694 | { |
| 695 | ( *it )->ResetTimeRange(); |
| 696 | ( *it )->Play(); |
| 697 | } |
| 698 | else |
| 699 | { |
| 700 | ( *it )->PlayTimeRange( rangeName.c_str() ); |
| 701 | } |
| 702 | } |
| 703 | } |
| 704 | |
| 705 | for( auto it = m_objects.begin(); it != m_objects.end(); it++ ) |
| 706 | { |
| 707 | if( auto owner = dynamic_cast<ITr2CurveSetOwner*>( *it ) ) |
| 708 | { |
| 709 | owner->PlayCurveSet( name, rangeName ); |
| 710 | } |
| 711 | } |
| 712 | } |
| 713 | |
| 714 | void EveChildContainer::PlayAllCurveSets() |
| 715 | { |
nothing calls this directly
no test coverage detected