mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Fix persistent underwater effect.
This commit is contained in:
parent
cd993e0607
commit
7453610563
1 changed files with 4 additions and 0 deletions
|
|
@ -891,6 +891,10 @@ void WaterObject::onRemove()
|
|||
{
|
||||
mPlaneReflector.unregisterReflector();
|
||||
cleanupMaterials();
|
||||
|
||||
PostEffect *underWaterEffect = getUnderwaterEffect( );
|
||||
if( underWaterEffect )
|
||||
underWaterEffect->disable( );
|
||||
}
|
||||
|
||||
Parent::onRemove();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue