Skip to content
Snippets Groups Projects
Commit c283a94c authored by andreylproductengine's avatar andreylproductengine
Browse files

MAINT-3969 FIXED Animation problems when teleporting while sitting on some objects

parent cd7e7e96
No related branches found
No related tags found
No related merge requests found
...@@ -3822,6 +3822,12 @@ bool LLAgent::teleportCore(bool is_local) ...@@ -3822,6 +3822,12 @@ bool LLAgent::teleportCore(bool is_local)
return false; return false;
} }
// force stand up and stop a sitting animation (if any), see MAINT-3969
if (isAgentAvatarValid() && gAgentAvatarp->getParent() && gAgentAvatarp->isSitting())
{
gAgentAvatarp->getOffObject();
}
#if 0 #if 0
// This should not exist. It has been added, removed, added, and now removed again. // This should not exist. It has been added, removed, added, and now removed again.
// This change needs to come from the simulator. Otherwise, the agent ends up out of // This change needs to come from the simulator. Otherwise, the agent ends up out of
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment