[Follow] If the user decides to sit/stand, that should cancel following

This commit is contained in:
Liru Færs
2020-01-10 16:47:52 -05:00
parent a687273d57
commit fa97d8497a

View File

@@ -3572,6 +3572,7 @@ class LLSelfSitOrStand : public view_listener_t
{
bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
{
gAgent.stopAutoPilot(true);
if (gAgentAvatarp && gAgentAvatarp->isSitting())
{
gAgent.standUp();
@@ -3896,6 +3897,8 @@ void handle_object_sit(LLViewerObject* object, const LLVector3& offset = LLVecto
}
// [/RLVa:KB]
gAgent.stopAutoPilot(true);
gMessageSystem->newMessageFast(_PREHASH_AgentRequestSit);
gMessageSystem->nextBlockFast(_PREHASH_AgentData);
gMessageSystem->addUUIDFast(_PREHASH_AgentID, gAgent.getID());