mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 15:14:35 +00:00
commit
3082bb3adc
28 changed files with 132 additions and 74 deletions
|
|
@ -964,10 +964,7 @@ void Explosion::onRemove()
|
|||
mMainEmitter = NULL;
|
||||
}
|
||||
|
||||
if (getSceneManager() != NULL)
|
||||
getSceneManager()->removeObjectFromScene(this);
|
||||
if (getContainer() != NULL)
|
||||
getContainer()->removeObject(this);
|
||||
removeFromScene();
|
||||
|
||||
Parent::onRemove();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -415,11 +415,7 @@ void Splash::onRemove()
|
|||
|
||||
ringList.clear();
|
||||
|
||||
if( getSceneManager() )
|
||||
getSceneManager()->removeObjectFromScene(this);
|
||||
|
||||
if( getContainer() )
|
||||
getContainer()->removeObject(this);
|
||||
removeFromScene();
|
||||
|
||||
Parent::onRemove();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue