diff options
author | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2012-10-22 11:09:32 -0400 |
---|---|---|
committer | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2012-10-22 11:09:32 -0400 |
commit | c961b5f6571cc6147410f9e7620e5aa44c009f3f (patch) | |
tree | f510b3ad949eb35696fc4c0218bb61f5af1de7a7 /indra/newview/llagent.cpp | |
parent | 2390e21a9d2fc6f5cabe132a2bbd807aec186cfa (diff) |
handling for crossing from non-server-bake to server-bake regions
Diffstat (limited to 'indra/newview/llagent.cpp')
-rwxr-xr-x | indra/newview/llagent.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp index 3e26eac59a..9eb2723dcf 100755 --- a/indra/newview/llagent.cpp +++ b/indra/newview/llagent.cpp @@ -904,6 +904,16 @@ void LLAgent::setRegion(LLViewerRegion *regionp) { LLEnvManagerNew::instance().onRegionCrossing(); } + + // If the newly entered region is using server bakes, and our + // current appearance is non-baked, request appearance update from + // server. + if (isAgentAvatarValid() && + !gAgentAvatarp->isUsingServerBakes() && + (mRegionp->getCentralBakeVersion()>0)) + { + LLAppearanceMgr::instance().requestServerAppearanceUpdate(); + } } |