Don't allow pose stand lock when rlv restricted from sitting.

master
Cinders 2013-08-16 11:23:46 -06:00
parent 8c12642f11
commit 42d5e7c8f5
1 changed files with 4 additions and 1 deletions

View File

@ -19,6 +19,7 @@
#include "llsdserialize.h"
#include "lltrans.h"
#include "llviewercontrol.h"
#include "rlvhandler.h"
FSFloaterPoseStand::FSFloaterPoseStand(const LLSD& key)
: LLFloater(key),
@ -53,7 +54,9 @@ void FSFloaterPoseStand::onOpen(const LLSD& key)
mAOPaused = true;
}
if (gSavedSettings.getBOOL("FSPoseStandLock") && !gAgentAvatarp->isSitting())
if (gSavedSettings.getBOOL("FSPoseStandLock")
&& !gAgentAvatarp->isSitting()
&& !gRlvHandler.hasBehaviour(RLV_BHVR_SIT))
{
setLock(true);
}