diff options
author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2023-11-20 20:38:41 +0200 |
---|---|---|
committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2023-11-20 21:52:11 +0200 |
commit | bfcc7a92b3c5f62c79879b8234c7055a3a83d9a5 (patch) | |
tree | f6c7723f8c284be068116d0ae551575b84528396 /indra/newview | |
parent | 9bd1ef1cf82d7fcbbcd8d942cc355d47b1fbe47f (diff) |
SL-20564 reset camera when teleporting Home, so avatar points to the expected direction
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llagent.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp index 77fe601c1e..ac89acfdf8 100644 --- a/indra/newview/llagent.cpp +++ b/indra/newview/llagent.cpp @@ -4344,6 +4344,10 @@ void LLAgent::teleportRequest( // Landmark ID = LLUUID::null means teleport home void LLAgent::teleportViaLandmark(const LLUUID& landmark_asset_id) { + if (landmark_asset_id.isNull()) + { + gAgentCamera.resetView(); + } mTeleportRequest = LLTeleportRequestPtr(new LLTeleportRequestViaLandmark(landmark_asset_id)); startTeleportRequest(); } |