| 882 | } |
| 883 | |
| 884 | void WaterObject::onRemove() |
| 885 | { |
| 886 | Con::NotifyDelegate clbk( this, &WaterObject::_onDisableTrueRelfections ); |
| 887 | Con::removeVariableNotify( "$pref::Water::disableTrueReflections", clbk ); |
| 888 | |
| 889 | if ( isClientObject() ) |
| 890 | { |
| 891 | mPlaneReflector.unregisterReflector(); |
| 892 | cleanupMaterials(); |
| 893 | |
| 894 | PostEffect *underWaterEffect = getUnderwaterEffect( ); |
| 895 | if( underWaterEffect ) |
| 896 | underWaterEffect->disable( ); |
| 897 | } |
| 898 | |
| 899 | Parent::onRemove(); |
| 900 | } |
| 901 | |
| 902 | void WaterObject::_onDisableTrueRelfections() |
| 903 | { |
nothing calls this directly
no test coverage detected