aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SceneGraph.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneGraph.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneGraph.cs21
1 files changed, 14 insertions, 7 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneGraph.cs b/OpenSim/Region/Framework/Scenes/SceneGraph.cs
index ef13c98..bb570e7 100644
--- a/OpenSim/Region/Framework/Scenes/SceneGraph.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneGraph.cs
@@ -278,7 +278,7 @@ namespace OpenSim.Region.Framework.Scenes
278 if (sceneObject == null || sceneObject.RootPart == null || sceneObject.RootPart.UUID == UUID.Zero) 278 if (sceneObject == null || sceneObject.RootPart == null || sceneObject.RootPart.UUID == UUID.Zero)
279 return false; 279 return false;
280 280
281 bool alreadyExisted = false; 281 bool newlyAdded = false;
282 282
283 if (m_parentScene.m_clampPrimSize) 283 if (m_parentScene.m_clampPrimSize)
284 { 284 {
@@ -305,7 +305,12 @@ namespace OpenSim.Region.Framework.Scenes
305 lock (sceneObject) 305 lock (sceneObject)
306 { 306 {
307 if (!Entities.ContainsKey(sceneObject.UUID)) 307 if (!Entities.ContainsKey(sceneObject.UUID))
308 { 308 {
309// m_log.DebugFormat(
310// "[SCENE GRAPH]: Adding object {0} {1} to region {2}",
311// sceneObject.Name, sceneObject.UUID, m_parentScene.RegionInfo.RegionName);
312
313 newlyAdded = true;
309 Entities.Add(sceneObject); 314 Entities.Add(sceneObject);
310 m_numPrim += sceneObject.Children.Count; 315 m_numPrim += sceneObject.Children.Count;
311 316
@@ -326,13 +331,15 @@ namespace OpenSim.Region.Framework.Scenes
326 } 331 }
327 } 332 }
328 } 333 }
329 else 334// else
330 { 335// {
331 alreadyExisted = true; 336// m_log.WarnFormat(
332 } 337// "[SCENE GRAPH]: Scene object {0} {1} was already in region {2} on add request",
338// sceneObject.Name, sceneObject.UUID, m_parentScene.RegionInfo.RegionName);
339// }
333 } 340 }
334 341
335 return alreadyExisted; 342 return newlyAdded;
336 } 343 }
337 344
338 /// <summary> 345 /// <summary>