Skip to content
Snippets Groups Projects
Commit e19c983a authored by Steven Bennetts's avatar Steven Bennetts
Browse files

* 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.
parent 01c7b50e
No related branches found
No related tags found
No related merge requests found
...@@ -115,11 +115,14 @@ void LLViewerMediaFocus::setFocusFace( BOOL b, LLPointer<LLViewerObject> objectp ...@@ -115,11 +115,14 @@ void LLViewerMediaFocus::setFocusFace( BOOL b, LLPointer<LLViewerObject> objectp
else else
{ {
gFocusMgr.setKeyboardFocus(NULL); gFocusMgr.setKeyboardFocus(NULL);
mFocus = NULL;
if(! parcel->getMediaPreventCameraZoom()) if(! parcel->getMediaPreventCameraZoom())
{ {
gAgent.setFocusOnAvatar(TRUE, ANIMATE); if (!mFocus->isEmpty())
{
gAgent.setFocusOnAvatar(TRUE, ANIMATE);
}
} }
mFocus = NULL;
// LLViewerMedia::remObserver(this, mObjectID); // LLViewerMedia::remObserver(this, mObjectID);
// Null out the media hud media pointer // Null out the media hud media pointer
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment