From 23578635df0c98f883f7be9b6e08a4fc1a7c834c Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Fri, 5 Aug 2016 15:19:42 +0100 Subject: more changes relative to incorrect use of activegroupid --- OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | 7 ++++--- OpenSim/Region/Framework/Scenes/Scene.cs | 14 -------------- .../Region/Framework/Scenes/Tests/UserInventoryTests.cs | 2 +- 3 files changed, 5 insertions(+), 18 deletions(-) (limited to 'OpenSim/Region/Framework/Scenes') diff --git a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs index f2df364..7152015 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs @@ -2454,6 +2454,7 @@ namespace OpenSim.Region.Framework.Scenes /// /// /// + /// /// /// /// @@ -2464,7 +2465,8 @@ namespace OpenSim.Region.Framework.Scenes /// /// /// - public virtual void RezObject(IClientAPI remoteClient, UUID itemID, Vector3 RayEnd, Vector3 RayStart, + public virtual void RezObject(IClientAPI remoteClient, UUID itemID, UUID groupID, + Vector3 RayEnd, Vector3 RayStart, UUID RayTargetID, byte BypassRayCast, bool RayEndIsIntersection, bool RezSelected, bool RemoveItem, UUID fromTaskID) { @@ -2504,8 +2506,7 @@ namespace OpenSim.Region.Framework.Scenes byte bRayEndIsIntersection = (byte)(RayEndIsIntersection ? 1 : 0); Vector3 scale = new Vector3(0.5f, 0.5f, 0.5f); - Vector3 pos - = GetNewRezLocation( + Vector3 pos = GetNewRezLocation( RayStart, RayEnd, RayTargetID, Quaternion.Identity, BypassRayCast, bRayEndIsIntersection, true, scale, false); diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 00e699e..33418e6 100755 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs @@ -3115,14 +3115,9 @@ namespace OpenSim.Region.Framework.Scenes || (aCircuit.teleportFlags & (uint)Constants.TeleportFlags.ViaLogin) != 0; CheckHeartbeat(); - sp = GetScenePresence(client.AgentId); - // XXX: Not sure how good it is to add a new client if a scene presence already exists. Possibly this - // could occur if a viewer crashes and relogs before the old client is kicked out. But this could cause - // other problems, and possibly the code calling AddNewAgent() should ensure that no client is already - // connected. if (sp == null) { m_log.DebugFormat( @@ -3137,15 +3132,6 @@ namespace OpenSim.Region.Framework.Scenes sp.TeleportFlags = (TPFlags)aCircuit.teleportFlags; -/* done in completMovement - InventoryFolderBase cof = InventoryService.GetFolderForType(client.AgentId, (AssetType)46); - if (cof == null) - sp.COF = UUID.Zero; - else - sp.COF = cof.ID; - - m_log.DebugFormat("[SCENE]: COF for {0} is {1}", client.AgentId, sp.COF); - */ m_eventManager.TriggerOnNewPresence(sp); } else diff --git a/OpenSim/Region/Framework/Scenes/Tests/UserInventoryTests.cs b/OpenSim/Region/Framework/Scenes/Tests/UserInventoryTests.cs index 75b073d..142ad84 100644 --- a/OpenSim/Region/Framework/Scenes/Tests/UserInventoryTests.cs +++ b/OpenSim/Region/Framework/Scenes/Tests/UserInventoryTests.cs @@ -171,7 +171,7 @@ namespace OpenSim.Region.Framework.Tests //Assert.That((retrievedItem1.CurrentPermissions & (uint)OpenMetaverse.PermissionMask.All) == (uint)OpenMetaverse.PermissionMask.All); // Rez the object - scene.RezObject(sp2.ControllingClient, retrievedItem1.ID, Vector3.Zero, Vector3.Zero, UUID.Zero, 0, false, false, false, UUID.Zero); + scene.RezObject(sp2.ControllingClient, retrievedItem1.ID, UUID.Zero, Vector3.Zero, Vector3.Zero, UUID.Zero, 0, false, false, false, UUID.Zero); SceneObjectGroup sog = scene.GetSceneObjectGroup("SomeObject"); Assert.That(sog, Is.Not.Null); -- cgit v1.1