From 7356860b487febd12c2e0de2f009a6df9ea0aeec Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Wed, 13 Jan 2010 09:17:30 -0800 Subject: Several more buglets removed. --- OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | 4 +-- OpenSim/Region/Framework/Scenes/Scene.cs | 3 +++ .../Framework/Scenes/SceneCommunicationService.cs | 29 ++++++++++------------ 3 files changed, 18 insertions(+), 18 deletions(-) (limited to 'OpenSim/Region/Framework') diff --git a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs index 70aea75..62a831e 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs @@ -2358,7 +2358,7 @@ namespace OpenSim.Region.Framework.Scenes InventoryItemBase item = new InventoryItemBase(itemID, remoteClient.AgentId); item = InventoryService.GetItem(item); - presence.Appearance.SetAttachment((int)AttachmentPt, itemID, /*item.AssetID*/ att.UUID); + presence.Appearance.SetAttachment((int)AttachmentPt, itemID, item.AssetID /*att.UUID*/); } return att.UUID; } @@ -2403,7 +2403,7 @@ namespace OpenSim.Region.Framework.Scenes // XXYY!! InventoryItemBase item = new InventoryItemBase(itemID, remoteClient.AgentId); item = InventoryService.GetItem(item); - presence.Appearance.SetAttachment((int)AttachmentPt, itemID, /*item.AssetID*/ att.UUID); + presence.Appearance.SetAttachment((int)AttachmentPt, itemID, item.AssetID /* att.UUID */); if (m_AvatarFactory != null) { diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 4bbea16..206e2f8 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs @@ -2553,6 +2553,9 @@ namespace OpenSim.Region.Framework.Scenes return false; } + + sceneObject.SetScene(this); + // Force allocation of new LocalId // foreach (SceneObjectPart p in sceneObject.Children.Values) diff --git a/OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs b/OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs index 1e7f54a..63719ac 100644 --- a/OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs +++ b/OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs @@ -414,7 +414,7 @@ namespace OpenSim.Region.Framework.Scenes /// Create the necessary child agents List cagents = new List(); foreach (GridRegion neighbour in neighbours) - { + { if (neighbour.RegionHandle != avatar.Scene.RegionInfo.RegionHandle) { @@ -446,7 +446,6 @@ namespace OpenSim.Region.Framework.Scenes if (avatar.Scene.CapsModule != null) { - // These two are the same thing! avatar.Scene.CapsModule.SetChildrenSeed(avatar.UUID, seeds); } avatar.KnownRegions = seeds; @@ -516,8 +515,6 @@ namespace OpenSim.Region.Framework.Scenes agent.InventoryFolder = UUID.Zero; agent.startpos = new Vector3(128, 128, 70); agent.child = true; - if (avatar.Appearance == null) - m_log.Debug("XXX Appearance is null!!!!"); agent.Appearance = avatar.Appearance; InformClientOfNeighbourDelegate d = InformClientOfNeighbourAsync; @@ -1450,17 +1447,17 @@ namespace OpenSim.Region.Framework.Scenes return m_scene.GridService.GetRegionsByName(UUID.Zero, name, maxNumber); } - //private void Dump(string msg, List handles) - //{ - // m_log.InfoFormat("-------------- HANDLE DUMP ({0}) ---------", msg); - // foreach (ulong handle in handles) - // { - // uint x, y; - // Utils.LongToUInts(handle, out x, out y); - // x = x / Constants.RegionSize; - // y = y / Constants.RegionSize; - // m_log.InfoFormat("({0}, {1})", x, y); - // } - //} + private void Dump(string msg, List handles) + { + m_log.InfoFormat("-------------- HANDLE DUMP ({0}) ---------", msg); + foreach (ulong handle in handles) + { + uint x, y; + Utils.LongToUInts(handle, out x, out y); + x = x / Constants.RegionSize; + y = y / Constants.RegionSize; + m_log.InfoFormat("({0}, {1})", x, y); + } + } } } -- cgit v1.1