diff options
| author | Don Kjer <don@lindenlab.com> | 2011-03-08 01:36:15 +0000 |
|---|---|---|
| committer | Don Kjer <don@lindenlab.com> | 2011-03-08 01:36:15 +0000 |
| commit | 127c45dfbab4550ebd7074f131e3a7b844affea8 (patch) | |
| tree | 4e53a71899f03bd8de1028231f025c7355df7f11 /indra/newview/llviewermessage.cpp | |
| parent | cb7ae391efed1cadab621734c6eb53fd62df19a4 (diff) | |
| parent | a07e6c625108988ad664df70a1842b53c843f223 (diff) | |
Merge with viewer-development
Diffstat (limited to 'indra/newview/llviewermessage.cpp')
| -rw-r--r-- | indra/newview/llviewermessage.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp index 3097e98509..e1fc8aedac 100644 --- a/indra/newview/llviewermessage.cpp +++ b/indra/newview/llviewermessage.cpp @@ -3751,8 +3751,19 @@ void process_agent_movement_complete(LLMessageSystem* msg, void**) } else { - // This is likely just the initial logging in phase. + // This is initial log-in or a region crossing gAgent.setTeleportState( LLAgent::TELEPORT_NONE ); + + if(LLStartUp::getStartupState() < STATE_STARTED) + { // This is initial log-in, not a region crossing: + // Set the camera looking ahead of the AV so send_agent_update() below + // will report the correct location to the server. + LLVector3 look_at_point = look_at; + look_at_point = agent_pos + look_at_point.rotVec(gAgent.getQuat()); + + static LLVector3 up_direction(0.0f, 0.0f, 1.0f); + LLViewerCamera::getInstance()->lookAt(agent_pos, look_at_point, up_direction); + } } if ( LLTracker::isTracking(NULL) ) |
