-------------------------------------------------------------------------------- Description: Update the curve set with the appropriate name --------------------------------------------------------------------------------
| 3375 | // Update the curve set with the appropriate name |
| 3376 | // -------------------------------------------------------------------------------- |
| 3377 | void EveSpaceObject2::UpdateCurveSet( const std::string& name, Be::Time time ) |
| 3378 | { |
| 3379 | for( auto it = m_curveSets.begin(); it != m_curveSets.end(); it++ ) |
| 3380 | { |
| 3381 | if( ( *it )->GetName() == name ) |
| 3382 | { |
| 3383 | ( *it )->Update( time, time ); |
| 3384 | } |
| 3385 | } |
| 3386 | for( auto it = m_children.begin(); it != m_children.end(); it++ ) |
| 3387 | { |
| 3388 | if( auto owner = dynamic_cast<ITr2CurveSetOwner*>( *it ) ) |
| 3389 | { |
| 3390 | owner->UpdateCurveSet( name, time ); |
| 3391 | } |
| 3392 | } |
| 3393 | for( auto it = m_effectChildren.begin(); it != m_effectChildren.end(); it++ ) |
| 3394 | { |
| 3395 | if( auto owner = dynamic_cast<ITr2CurveSetOwner*>( *it ) ) |
| 3396 | { |
| 3397 | owner->UpdateCurveSet( name, time ); |
| 3398 | } |
| 3399 | } |
| 3400 | } |
| 3401 | |
| 3402 | // -------------------------------------------------------------------------------- |
| 3403 | // Description: |