mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 22:54:34 +00:00
Fix for Issue #96 for DAE updating crash
This commit is contained in:
parent
9ed0f467d8
commit
89ad23a925
4 changed files with 22 additions and 2 deletions
|
|
@ -569,9 +569,11 @@ void PxWorld::_releaseQueues()
|
|||
mReleaseJointQueue.clear();
|
||||
|
||||
// Now release any actors still pending in the queue.
|
||||
bool staticChanged = false;
|
||||
for ( S32 i = 0; i < mReleaseActorQueue.size(); i++ )
|
||||
{
|
||||
NxActor *currActor = mReleaseActorQueue[i];
|
||||
NxActor *currActor = mReleaseActorQueue[i];
|
||||
staticChanged |= !currActor->isDynamic();
|
||||
mScene->releaseActor( *currActor );
|
||||
}
|
||||
|
||||
|
|
@ -618,6 +620,9 @@ void PxWorld::_releaseQueues()
|
|||
mScene->releaseFluid( *currFluid );
|
||||
}
|
||||
mReleaseFluidQueue.clear();
|
||||
|
||||
if ( staticChanged )
|
||||
mStaticChangedSignal.trigger();
|
||||
}
|
||||
|
||||
void PxWorld::setEnabled( bool enabled )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue