From e9144b1a3a053ba447c0fb643926957c80ad365d Mon Sep 17 00:00:00 2001 From: Dr Scofield Date: Thu, 24 Jul 2008 14:18:07 +0000 Subject: [PATCH] From: Christopher Yeoh The problem I noticed is that when child prims are selected unlike the Linden server, OpenSim does not return property information - it only searches the root prims for matches. What I'm not sure about is whether the parcel prim count taint should be set or if the root prim should be set as selected (doesn't seem possible to set the child prim as selected). It does however fix the problem of the property information not being sent, so its an improvement (I think!). --- .../Environment/Scenes/Scene.PacketHandlers.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs b/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs index 25e36c505a..177d99caef 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs @@ -119,6 +119,22 @@ namespace OpenSim.Region.Environment.Scenes } break; } + else + { + // We also need to check the children of this prim as they + // can be selected as well and send property information + bool foundPrim = false; + foreach (KeyValuePair child in ((SceneObjectGroup) ent).Children) + { + if (child.Value.LocalId == primLocalID) + { + child.Value.GetProperties(remoteClient); + foundPrim = true; + break; + } + } + if (foundPrim) break; + } } } }