aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scene.Inventory.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.Inventory.cs10
1 files changed, 8 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs
index 7026fea..9821906 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs
@@ -33,6 +33,7 @@ using OpenSim.Framework;
33using OpenSim.Framework.Communications.Cache; 33using OpenSim.Framework.Communications.Cache;
34using OpenSim.Framework.Console; 34using OpenSim.Framework.Console;
35using OpenSim.Region.Physics.Manager; 35using OpenSim.Region.Physics.Manager;
36using System.Collections.Generic;
36 37
37namespace OpenSim.Region.Environment.Scenes 38namespace OpenSim.Region.Environment.Scenes
38{ 39{
@@ -342,7 +343,9 @@ namespace OpenSim.Region.Environment.Scenes
342 343
343 private SceneObjectGroup GetGroupByPrim(uint localID) 344 private SceneObjectGroup GetGroupByPrim(uint localID)
344 { 345 {
345 foreach (EntityBase ent in Entities.Values) 346 List<EntityBase> EntitieList = GetEntities();
347
348 foreach (EntityBase ent in EntitieList)
346 { 349 {
347 if (ent is SceneObjectGroup) 350 if (ent is SceneObjectGroup)
348 { 351 {
@@ -455,7 +458,10 @@ namespace OpenSim.Region.Environment.Scenes
455 { 458 {
456 EntityBase selectedEnt = null; 459 EntityBase selectedEnt = null;
457 //MainLog.Instance.Verbose("CLIENT", "LocalID:" + Data.ObjectLocalID.ToString()); 460 //MainLog.Instance.Verbose("CLIENT", "LocalID:" + Data.ObjectLocalID.ToString());
458 foreach (EntityBase ent in Entities.Values) 461
462 List<EntityBase> EntitieList = GetEntities();
463
464 foreach (EntityBase ent in EntitieList)
459 { 465 {
460 if (ent.LocalId == Data.ObjectLocalID) 466 if (ent.LocalId == Data.ObjectLocalID)
461 { 467 {