From e5cdba1cb49346308fb0e9699c3a6386b487d97b Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Tue, 19 Aug 2008 15:09:35 +0000 Subject: Fix region crossings and access to inventory after changing regions within the same simulator --- OpenSim/Region/Environment/Scenes/ScenePresence.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/Environment/Scenes/ScenePresence.cs') diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs index 8059a78..706fd61 100644 --- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs @@ -606,6 +606,8 @@ namespace OpenSim.Region.Environment.Scenes /// public void MakeRootAgent(LLVector3 pos, bool isFlying) { + m_scene.SetRootAgentScene(m_uuid); + IAvatarFactory ava = m_scene.RequestModuleInterface(); if (ava != null) { @@ -2010,9 +2012,10 @@ namespace OpenSim.Region.Environment.Scenes m_scene.SendKillObject(m_localId); m_scene.NotifyMyCoarseLocationChange(); - // the user may change thier profile information in other region, + // the user may change their profile information in other region, // so the userinfo in UserProfileCache is not reliable any more, delete it - m_scene.CommsManager.UserProfileCacheService.RemoveUser(UUID); + if(m_scene.NeedSceneCacheClear(UUID)) + m_scene.CommsManager.UserProfileCacheService.RemoveUser(UUID); m_log.InfoFormat("User {0} is going to another region, profile cache removed", UUID); } else -- cgit v1.1