| 895 | } |
| 896 | |
| 897 | void WaterObject::onRemove() |
| 898 | { |
| 899 | Con::NotifyDelegate clbk( this, &WaterObject::_onEnableTrueReflections ); |
| 900 | Con::removeVariableNotify( "$pref::Water::EnableTrueReflections", clbk ); |
| 901 | |
| 902 | if ( isClientObject() ) |
| 903 | { |
| 904 | mPlaneReflector.unregisterReflector(); |
| 905 | cleanupMaterials(); |
| 906 | |
| 907 | PostEffect *underWaterEffect = getUnderwaterEffect( ); |
| 908 | if( underWaterEffect ) |
| 909 | underWaterEffect->disable( ); |
| 910 | } |
| 911 | |
| 912 | Parent::onRemove(); |
| 913 | } |
| 914 | |
| 915 | void WaterObject::_onEnableTrueReflections() |
| 916 | { |
nothing calls this directly
no test coverage detected