* Drop cached inventory from the local region when a user crosses out into a remote region

* May resolves inventory problems that occur when the user moves between two regions`
* e.g. if the user moves to a second region, adds an inventory item, moves back to the original region then tries to manipulate that item
* Not yet implemented for teleport
This commit is contained in:
Justin Clarke Casey
2008-08-01 18:49:48 +00:00
parent de4e3bfede
commit 43b2ff1d11
7 changed files with 83 additions and 38 deletions

View File

@@ -557,8 +557,10 @@ namespace OpenSim.Region.Environment.Scenes
LLVector3 lookAt, uint flags)
{
bool destRegionUp = false;
if (regionHandle == m_regionInfo.RegionHandle)
{
// Teleport within the same region
avatar.ControllingClient.SendTeleportLocationStart();
avatar.ControllingClient.SendLocalTeleport(position, lookAt, flags);
avatar.Teleport(position);