mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Merge pull request #1525 from Azaezel/alpha41/lanceTheThread
fix crash with unclean exit
This commit is contained in:
commit
81504fb089
|
|
@ -4604,10 +4604,12 @@ void Player::onUnmount( SceneObject *obj, S32 node )
|
|||
|
||||
void Player::unmount()
|
||||
{
|
||||
|
||||
// Reset back to root position during dismount. This copies what is
|
||||
// done on the server and corrects the fact that the RootAnim change
|
||||
// is not sent across to the client using the standard ActionMask.
|
||||
setActionThread(PlayerData::RootAnim,true,false,false);
|
||||
if (!isRemoved())
|
||||
setActionThread(PlayerData::RootAnim,true,false,false);
|
||||
|
||||
Parent::unmount();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -534,7 +534,6 @@ void TSShapeInstance::destroyThread(TSThread * thread)
|
|||
delete mThreadList[i];
|
||||
mThreadList.erase(i);
|
||||
setDirty(AllDirtyMask);
|
||||
checkScaleCurrentlyAnimated();
|
||||
}
|
||||
|
||||
U32 TSShapeInstance::threadCount()
|
||||
|
|
|
|||
Loading…
Reference in a new issue