[Follow] If the user decides to sit/stand, that should cancel following
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user