LLAgentCamera transition (1/2)
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
#include "lltoolselect.h"
|
||||
|
||||
#include "llagent.h"
|
||||
#include "llagentcamera.h"
|
||||
#include "llviewercontrol.h"
|
||||
#include "lldrawable.h"
|
||||
#include "llmanip.h"
|
||||
@@ -101,7 +102,7 @@ LLObjectSelectionHandle LLToolSelect::handleObjectSelection(const LLPickInfo& pi
|
||||
if (gFloaterTools->getVisible())
|
||||
{
|
||||
// Copy/paste from toggle_build_mode()
|
||||
gAgent.resetView(false);
|
||||
gAgentCamera.resetView(false);
|
||||
gFloaterTools->close();
|
||||
gViewerWindow->showCursor();
|
||||
}
|
||||
@@ -122,7 +123,7 @@ LLObjectSelectionHandle LLToolSelect::handleObjectSelection(const LLPickInfo& pi
|
||||
else if (gFloaterTools->getVisible())
|
||||
{
|
||||
// Copy/paste from toggle_build_mode()
|
||||
gAgent.resetView(false);
|
||||
gAgentCamera.resetView(false);
|
||||
gFloaterTools->close();
|
||||
gViewerWindow->showCursor();
|
||||
}
|
||||
@@ -214,7 +215,7 @@ LLObjectSelectionHandle LLToolSelect::handleObjectSelection(const LLPickInfo& pi
|
||||
LLSelectMgr::getInstance()->setAgentHUDZoom(target_zoom, current_zoom);
|
||||
}
|
||||
|
||||
if (!gAgent.getFocusOnAvatar() && // if camera not glued to avatar
|
||||
if (!gAgentCamera.getFocusOnAvatar() && // if camera not glued to avatar
|
||||
LLVOAvatar::findAvatarFromAttachment(object) != gAgent.getAvatarObject() && // and it's not one of your attachments
|
||||
object != gAgent.getAvatarObject()) // and it's not you
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user