aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs
diff options
context:
space:
mode:
authormingchen2007-07-16 01:25:16 +0000
committermingchen2007-07-16 01:25:16 +0000
commit7f10179129d4b5ac4ae5c05ff8598f569b8e6412 (patch)
treeb5a6eac77699fd1857085aedcecf8732db7a0ebd /OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs
parentCouple of small changes to NPC test character. (diff)
downloadopensim-SC-7f10179129d4b5ac4ae5c05ff8598f569b8e6412.zip
opensim-SC-7f10179129d4b5ac4ae5c05ff8598f569b8e6412.tar.gz
opensim-SC-7f10179129d4b5ac4ae5c05ff8598f569b8e6412.tar.bz2
opensim-SC-7f10179129d4b5ac4ae5c05ff8598f569b8e6412.tar.xz
*Fixed bug that incorrectly tabulated 'others' prims on a parcel
*Added support for selected prims (does not yet support prims being sat on) *Added support for listing avatars with prims on parcel with their prim count
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs b/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs
index 6431bc7..347625a 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs
@@ -341,6 +341,29 @@ namespace OpenSim.Region.Environment.Scenes
341 if (((SceneObject)ent).rootLocalID == primLocalID) 341 if (((SceneObject)ent).rootLocalID == primLocalID)
342 { 342 {
343 ((SceneObject)ent).GetProperites(remoteClient); 343 ((SceneObject)ent).GetProperites(remoteClient);
344 ((SceneObject)ent).isSelected = true;
345 this.ParcelManager.setPrimsTainted();
346 break;
347 }
348 }
349 }
350 }
351
352 /// <summary>
353 ///
354 /// </summary>
355 /// <param name="primLocalID"></param>
356 /// <param name="remoteClient"></param>
357 public void DeselectPrim(uint primLocalID, IClientAPI remoteClient)
358 {
359 foreach (EntityBase ent in Entities.Values)
360 {
361 if (ent is SceneObject)
362 {
363 if (((SceneObject)ent).rootLocalID == primLocalID)
364 {
365 ((SceneObject)ent).isSelected = false;
366 this.ParcelManager.setPrimsTainted();
344 break; 367 break;
345 } 368 }
346 } 369 }