summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Bennetts <steve@lindenlab.com>2009-09-23 19:03:26 +0000
committerSteven Bennetts <steve@lindenlab.com>2009-09-23 19:03:26 +0000
commite19c983a119c33372ac5c8c161d563611b5a5e43 (patch)
tree7ee3b278b04a00bfbcf66d7c3fd4df89091c1306
parent01c7b50edbca7d397dfe5e4ba3d8b5a2e4b6780d (diff)
* EXT-1037 - Left-clicking anywhere in in-world area resets camera position
NOTE: Temporary fix that may break MOAP behavior. Needs to be reviewd and potentially designed.
-rw-r--r--indra/newview/llviewermediafocus.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/newview/llviewermediafocus.cpp b/indra/newview/llviewermediafocus.cpp
index 60eabd730f..e7576d5c76 100644
--- a/indra/newview/llviewermediafocus.cpp
+++ b/indra/newview/llviewermediafocus.cpp
@@ -115,11 +115,14 @@ void LLViewerMediaFocus::setFocusFace( BOOL b, LLPointer<LLViewerObject> objectp
else
{
gFocusMgr.setKeyboardFocus(NULL);
- mFocus = NULL;
if(! parcel->getMediaPreventCameraZoom())
{
- gAgent.setFocusOnAvatar(TRUE, ANIMATE);
+ if (!mFocus->isEmpty())
+ {
+ gAgent.setFocusOnAvatar(TRUE, ANIMATE);
+ }
}
+ mFocus = NULL;
// LLViewerMedia::remObserver(this, mObjectID);
// Null out the media hud media pointer