| 3928 | } |
| 3929 | |
| 3930 | void EveSpaceObject2::SetInheritProperties( const Color* colorSet ) |
| 3931 | { |
| 3932 | if( !m_inheritProperties ) |
| 3933 | { |
| 3934 | m_inheritProperties.CreateInstance(); |
| 3935 | } |
| 3936 | m_inheritProperties->SetProperties( colorSet ); |
| 3937 | |
| 3938 | for( auto it = m_effectChildren.begin(); it != m_effectChildren.end(); it++ ) |
| 3939 | { |
| 3940 | if( IEveInheritPropertiesOwnerPtr cast = BlueCastPtr( *it ) ) |
| 3941 | { |
| 3942 | cast->SetInheritProperties( m_inheritProperties->GetProperties() ); |
| 3943 | } |
| 3944 | } |
| 3945 | |
| 3946 | for( auto it = m_lights.begin(); it != m_lights.end(); it++ ) |
| 3947 | { |
| 3948 | if( IEveInheritPropertiesOwnerPtr light = BlueCastPtr( *it ) ) |
| 3949 | { |
| 3950 | light->SetInheritProperties( m_inheritProperties->GetProperties() ); |
| 3951 | } |
| 3952 | } |
| 3953 | } |
| 3954 | |
| 3955 | void EveSpaceObject2::SetMute( bool isMute ) |
| 3956 | { |
no test coverage detected