diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/ScenePresence.cs | 7 |
1 files changed, 5 insertions, 2 deletions
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 | |||
606 | /// </summary> | 606 | /// </summary> |
607 | public void MakeRootAgent(LLVector3 pos, bool isFlying) | 607 | public void MakeRootAgent(LLVector3 pos, bool isFlying) |
608 | { | 608 | { |
609 | m_scene.SetRootAgentScene(m_uuid); | ||
610 | |||
609 | IAvatarFactory ava = m_scene.RequestModuleInterface<IAvatarFactory>(); | 611 | IAvatarFactory ava = m_scene.RequestModuleInterface<IAvatarFactory>(); |
610 | if (ava != null) | 612 | if (ava != null) |
611 | { | 613 | { |
@@ -2010,9 +2012,10 @@ namespace OpenSim.Region.Environment.Scenes | |||
2010 | 2012 | ||
2011 | m_scene.SendKillObject(m_localId); | 2013 | m_scene.SendKillObject(m_localId); |
2012 | m_scene.NotifyMyCoarseLocationChange(); | 2014 | m_scene.NotifyMyCoarseLocationChange(); |
2013 | // the user may change thier profile information in other region, | 2015 | // the user may change their profile information in other region, |
2014 | // so the userinfo in UserProfileCache is not reliable any more, delete it | 2016 | // so the userinfo in UserProfileCache is not reliable any more, delete it |
2015 | m_scene.CommsManager.UserProfileCacheService.RemoveUser(UUID); | 2017 | if(m_scene.NeedSceneCacheClear(UUID)) |
2018 | m_scene.CommsManager.UserProfileCacheService.RemoveUser(UUID); | ||
2016 | m_log.InfoFormat("User {0} is going to another region, profile cache removed", UUID); | 2019 | m_log.InfoFormat("User {0} is going to another region, profile cache removed", UUID); |
2017 | } | 2020 | } |
2018 | else | 2021 | else |