mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
fix crash with unclean exit
for player, if we're unmounting because we're being deleted, don't bother animating for tsthreads in general, not much point in removing the threadlist, then checking if it's scaled
This commit is contained in:
parent
1558681138
commit
03c99f845b
2 changed files with 3 additions and 2 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue