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/SceneCommunicationService.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs') diff --git a/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs b/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs index adad7d3..f1af15f 100644 --- a/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs +++ b/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs @@ -653,9 +653,10 @@ namespace OpenSim.Region.Environment.Scenes SendCloseChildAgentConnections(avatar.UUID,avatar.GetKnownRegionList()); } // if (teleport success) // seems to be always success here - // 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_commsProvider.UserProfileCacheService.RemoveUser(avatar.UUID); + if (avatar.Scene.NeedSceneCacheClear(avatar.UUID)) + m_commsProvider.UserProfileCacheService.RemoveUser(avatar.UUID); m_log.InfoFormat("User {0} is going to another region, profile cache removed", avatar.UUID); } else -- cgit v1.1