Fix problem where moving an object to another region on the same simulator was failing, with the object returning to its original position.

Root cause was that PrimLimitsModule was not properly handling the case where the parcel it was asked to check was outside the current region's bounds.
If this is the case, we can abort the check since the receiving region will perform it.
Added a regression test for this case.
This commit is contained in:
Justin Clark-Casey (justincc)
2014-04-02 00:58:33 +01:00
parent 4cbd45f3d5
commit 0af8886400
4 changed files with 207 additions and 6 deletions

View File

@@ -1326,12 +1326,23 @@ namespace OpenSim.Region.Framework.Scenes
/// <summary>
/// Update the position of the given group.
/// </summary>
/// <param name="localID"></param>
/// <param name="localId"></param>
/// <param name="pos"></param>
/// <param name="remoteClient"></param>
public void UpdatePrimGroupPosition(uint localID, Vector3 pos, IClientAPI remoteClient)
public void UpdatePrimGroupPosition(uint localId, Vector3 pos, IClientAPI remoteClient)
{
SceneObjectGroup group = GetGroupByPrim(localID);
UpdatePrimGroupPosition(localId, pos, remoteClient.AgentId);
}
/// <summary>
/// Update the position of the given group.
/// </summary>
/// <param name="localId"></param>
/// <param name="pos"></param>
/// <param name="updatingAgentId"></param>
public void UpdatePrimGroupPosition(uint localId, Vector3 pos, UUID updatingAgentId)
{
SceneObjectGroup group = GetGroupByPrim(localId);
if (group != null)
{
@@ -1342,7 +1353,7 @@ namespace OpenSim.Region.Framework.Scenes
}
else
{
if (m_parentScene.Permissions.CanMoveObject(group.UUID, remoteClient.AgentId)
if (m_parentScene.Permissions.CanMoveObject(group.UUID, updatingAgentId)
&& m_parentScene.Permissions.CanObjectEntry(group.UUID, false, pos))
{
group.UpdateGroupPosition(pos);