mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-09 15:30:41 +00:00
Merge pull request #1077 from BeamNG/fix_underwater
Fix persistent underwater effect.
This commit is contained in:
commit
8f80ccc15a
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