mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-27 02:23:47 +00:00
Mount Process Order Fix 1
Added a controlling object check to GameBase::onMount() so mounted objects will process after objects controlling them.
This commit is contained in:
parent
ca4e4fe86d
commit
8250e4728d
1 changed files with 1 additions and 1 deletions
|
|
@ -590,7 +590,7 @@ void GameBase::onMount( SceneObject *obj, S32 node )
|
|||
// Are we mounting to a GameBase object?
|
||||
GameBase *gbaseObj = dynamic_cast<GameBase*>( obj );
|
||||
|
||||
if ( gbaseObj && gbaseObj->getControlObject() != this )
|
||||
if ( gbaseObj && gbaseObj->getControlObject() != this && gbaseObj->getControllingObject() != this)
|
||||
processAfter( gbaseObj );
|
||||
|
||||
if (!isGhost()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue