aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs
diff options
context:
space:
mode:
authorCharles Krinke2007-12-17 16:41:28 +0000
committerCharles Krinke2007-12-17 16:41:28 +0000
commita990c64698d465a6ed1694cdaa526254f8063663 (patch)
tree9833c5eb8a95ad44dcea0f84769703323d488a6e /OpenSim/Region/Environment/Scenes/Scene.Inventory.cs
parentThank you, Kiryu for a patch to fix out of sync error in UDP server (diff)
downloadopensim-SC_OLD-a990c64698d465a6ed1694cdaa526254f8063663.zip
opensim-SC_OLD-a990c64698d465a6ed1694cdaa526254f8063663.tar.gz
opensim-SC_OLD-a990c64698d465a6ed1694cdaa526254f8063663.tar.bz2
opensim-SC_OLD-a990c64698d465a6ed1694cdaa526254f8063663.tar.xz
Thank you to Kiryu for a patch to fix an out of Sync
error in Scene. Affects 6 files and is Mantis#201
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 {