mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 12:25:42 +08:00
From: Christopher Yeoh <cyeoh@au1.ibm.com>
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!).
This commit is contained in:
@@ -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<LLUUID, SceneObjectPart> child in ((SceneObjectGroup) ent).Children)
|
||||
{
|
||||
if (child.Value.LocalId == primLocalID)
|
||||
{
|
||||
child.Value.GetProperties(remoteClient);
|
||||
foundPrim = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (foundPrim) break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user