Reworked LLToolCompGun so piemenu in mouselook plays nicer with zoom feature
Switches to exodus implementation Includes relicensing of LLViewerCamera and LLToolComp Maintains use of the old saved zoomed setting
This commit is contained in:
@@ -1015,18 +1015,6 @@ BOOL LLViewerWindow::handleMouseUp(LLWindow *window, LLCoordGL pos, MASK mask)
|
||||
|
||||
BOOL LLViewerWindow::handleRightMouseDown(LLWindow *window, LLCoordGL pos, MASK mask)
|
||||
{
|
||||
//From Phoenix
|
||||
// Singu TODO: Change these from debug settings to externs?
|
||||
gSavedSettings.setBOOL("zmm_rightmousedown", true);
|
||||
if (gAgentCamera.cameraMouselook() && !gSavedSettings.getBOOL("zmm_isinml"))
|
||||
{
|
||||
llinfos << "zmmisinml set to true" << llendl;
|
||||
gSavedSettings.setBOOL("zmm_isinml", true);
|
||||
F32 deffov = LLViewerCamera::getInstance()->getDefaultFOV();
|
||||
gSavedSettings.setF32("zmm_deffov", deffov);
|
||||
LLViewerCamera::getInstance()->setDefaultFOV(deffov/gSavedSettings.getF32("zmm_mlfov"));
|
||||
}
|
||||
|
||||
S32 x = pos.mX;
|
||||
S32 y = pos.mY;
|
||||
x = llround((F32)x / mDisplayScale.mV[VX]);
|
||||
@@ -1055,14 +1043,6 @@ BOOL LLViewerWindow::handleRightMouseDown(LLWindow *window, LLCoordGL pos, MASK
|
||||
|
||||
BOOL LLViewerWindow::handleRightMouseUp(LLWindow *window, LLCoordGL pos, MASK mask)
|
||||
{
|
||||
gSavedSettings.setBOOL("zmm_rightmousedown", false);
|
||||
if(gSavedSettings.getBOOL("zmm_isinml")==1)
|
||||
{
|
||||
llinfos << "zmmisinml set to false" << llendl;
|
||||
gSavedSettings.setBOOL("zmm_isinml",0);
|
||||
LLViewerCamera::getInstance()->setDefaultFOV(gSavedSettings.getF32("zmm_deffov"));
|
||||
}
|
||||
|
||||
BOOL down = FALSE;
|
||||
return handleAnyMouseClick(window,pos,mask,LLMouseHandler::CLICK_RIGHT,down);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user