[RLVa] @camunlock

Causes LLAgentCamera::unlockView() to not happen, this turns off camera orbits.
Enables sim camera constraints regardless of user preference.
Resets camera when turned on.
This commit is contained in:
Inusaito Sayori
2015-05-26 01:05:37 -04:00
parent d81497d29f
commit 323b49de17
4 changed files with 17 additions and 1 deletions

View File

@@ -59,6 +59,7 @@
#include "llvoavatarself.h"
#include "llmorphview.h"
#include "llfloatercustomize.h"
#include "rlvhandler.h" // [RLVa:LF] - camunlock
// Globals
BOOL gCameraBtnZoom = TRUE;
@@ -200,6 +201,8 @@ void LLToolCamera::pickCallback(const LLPickInfo& pick_info)
else if (pick_info.mKeyMask & MASK_ALT ||
(LLToolMgr::getInstance()->getCurrentTool()->getName() == "Camera"))
{
if (gRlvHandler.hasBehaviour(RLV_BHVR_CAMUNLOCK)) return; // [RLVa:LF] - camunlock
LLViewerObject* hit_obj = pick_info.getObject();
if (hit_obj)
{