parent
2a18eb7d71
commit
9d7c376390
|
|
@ -1145,6 +1145,14 @@ void LLAgentCamera::updateCamera()
|
|||
mCameraUpVector = LLVector3::z_axis;
|
||||
//LLVector3 camera_skyward(0.f, 0.f, 1.f);
|
||||
|
||||
// [RLVa:KB] - Checked: RLVa-2.0.0
|
||||
// Set focus back on our avie if something changed it
|
||||
if ( (gRlvHandler.hasBehaviour(RLV_BHVR_CAMUNLOCK)) && (cameraThirdPerson()) && (!getFocusOnAvatar()) )
|
||||
{
|
||||
setFocusOnAvatar(TRUE, FALSE);
|
||||
}
|
||||
// [/RLVa:KB]
|
||||
|
||||
U32 camera_mode = mCameraAnimating ? mLastCameraMode : mCameraMode;
|
||||
|
||||
validateFocusObject();
|
||||
|
|
|
|||
|
|
@ -157,6 +157,7 @@ enum ERlvBehaviour {
|
|||
RLV_BHVR_SETENV, // "setenv"
|
||||
RLV_BHVR_ALWAYSRUN, // "alwaysrun"
|
||||
RLV_BHVR_TEMPRUN, // "temprun"
|
||||
RLV_BHVR_CAMUNLOCK,
|
||||
RLV_BHVR_DETACHME, // "detachme"
|
||||
RLV_BHVR_ATTACHTHIS, // "attachthis"
|
||||
RLV_BHVR_ATTACHTHISEXCEPT, // "attachthis_except"
|
||||
|
|
|
|||
|
|
@ -24,11 +24,13 @@
|
|||
#include "llmoveview.h"
|
||||
#include "llstartup.h"
|
||||
#include "llviewermessage.h"
|
||||
#include "llviewermenu.h"
|
||||
#include "llviewerobjectlist.h"
|
||||
#include "llviewerparcelmgr.h"
|
||||
#include "llviewerregion.h"
|
||||
|
||||
// Command specific includes
|
||||
#include "llagentcamera.h" // @camfocus
|
||||
#include "llenvmanager.h" // @setenv
|
||||
#include "lloutfitslist.h" // @showinv - "Appearance / My Outfits" panel
|
||||
#include "llpaneloutfitsinventory.h" // @showinv - "Appearance" floater
|
||||
|
|
@ -1497,6 +1499,16 @@ ERlvCmdRet RlvBehaviourAddRemAttachHandler::onCommand(const RlvCommand& rlvCmd,
|
|||
return RLV_RET_SUCCESS;
|
||||
}
|
||||
|
||||
// Handles: @sendim=n|y toggles
|
||||
template<> template<>
|
||||
void RlvBehaviourHandler<RLV_BHVR_CAMUNLOCK>::onCommandToggle(ERlvBehaviour eBhvr, bool fHasBhvr)
|
||||
{
|
||||
if (fHasBhvr)
|
||||
{
|
||||
handle_reset_view();
|
||||
}
|
||||
}
|
||||
|
||||
// Handles: @detach[:<attachpt>]=n|y
|
||||
template<> template<>
|
||||
ERlvCmdRet RlvBehaviourHandler<RLV_BHVR_DETACH>::onCommand(const RlvCommand& rlvCmd, bool& fRefCount)
|
||||
|
|
|
|||
|
|
@ -91,6 +91,7 @@ RlvBehaviourDictionary::RlvBehaviourDictionary()
|
|||
addEntry(new RlvBehaviourInfo("attachallthis", RLV_BHVR_ATTACHTHIS, RLV_TYPE_ADDREM, RlvBehaviourInfo::FORCEWEAR_SUBTREE));
|
||||
addEntry(new RlvBehaviourInfo("attachthis_except", RLV_BHVR_ATTACHTHISEXCEPT, RLV_TYPE_ADDREM, RlvBehaviourInfo::FORCEWEAR_NODE));
|
||||
addEntry(new RlvBehaviourInfo("attachallthis_except", RLV_BHVR_ATTACHTHISEXCEPT, RLV_TYPE_ADDREM, RlvBehaviourInfo::FORCEWEAR_SUBTREE));
|
||||
addEntry(new RlvBehaviourToggleProcessor<RLV_BHVR_CAMUNLOCK, RLV_OPTION_NONE>("camunlock"));
|
||||
addEntry(new RlvBehaviourGenericProcessor<RLV_OPTION_NONE>("chatwhisper", RLV_BHVR_CHATWHISPER));
|
||||
addEntry(new RlvBehaviourGenericProcessor<RLV_OPTION_NONE>("chatnormal", RLV_BHVR_CHATNORMAL));
|
||||
addEntry(new RlvBehaviourGenericProcessor<RLV_OPTION_NONE>("chatshout", RLV_BHVR_CHATSHOUT));
|
||||
|
|
|
|||
Loading…
Reference in New Issue