MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / onRemove

Method onRemove

Engine/source/environment/waterObject.cpp:884–900  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

882}
883
884void 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
902void WaterObject::_onDisableTrueRelfections()
903{

Callers

nothing calls this directly

Calls 3

removeVariableNotifyFunction · 0.85
unregisterReflectorMethod · 0.45
disableMethod · 0.45

Tested by

no test coverage detected