mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +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();
|
mPlaneReflector.unregisterReflector();
|
||||||
cleanupMaterials();
|
cleanupMaterials();
|
||||||
|
|
||||||
|
PostEffect *underWaterEffect = getUnderwaterEffect( );
|
||||||
|
if( underWaterEffect )
|
||||||
|
underWaterEffect->disable( );
|
||||||
}
|
}
|
||||||
|
|
||||||
Parent::onRemove();
|
Parent::onRemove();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue