From bfcc7a92b3c5f62c79879b8234c7055a3a83d9a5 Mon Sep 17 00:00:00 2001 From: Mnikolenko Productengine Date: Mon, 20 Nov 2023 20:38:41 +0200 Subject: SL-20564 reset camera when teleporting Home, so avatar points to the expected direction --- indra/newview/llagent.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'indra/newview') 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(); } -- cgit v1.2.3