aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SceneGraph.cs
diff options
context:
space:
mode:
authorMelanie2012-01-31 20:53:49 +0000
committerMelanie2012-01-31 20:53:49 +0000
commit1b63b21a4db192cdfb24748be523dd53bbba47a9 (patch)
treea9c45afd55fb652e35c9a703560c7e35af2cdfa6 /OpenSim/Region/Framework/Scenes/SceneGraph.cs
parentMake parcel sale overlays work. No auction support. (diff)
parentRemove scene object null check on SceneGraph.AddSceneObject(). Complain expl... (diff)
downloadopensim-SC-1b63b21a4db192cdfb24748be523dd53bbba47a9.zip
opensim-SC-1b63b21a4db192cdfb24748be523dd53bbba47a9.tar.gz
opensim-SC-1b63b21a4db192cdfb24748be523dd53bbba47a9.tar.bz2
opensim-SC-1b63b21a4db192cdfb24748be523dd53bbba47a9.tar.xz
Merge branch 'master' into careminster
Conflicts: OpenSim/Region/Application/OpenSimBase.cs
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneGraph.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneGraph.cs19
1 files changed, 18 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneGraph.cs b/OpenSim/Region/Framework/Scenes/SceneGraph.cs
index ea2caaf..aecca27 100644
--- a/OpenSim/Region/Framework/Scenes/SceneGraph.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneGraph.cs
@@ -395,11 +395,28 @@ namespace OpenSim.Region.Framework.Scenes
395 /// </returns> 395 /// </returns>
396 protected bool AddSceneObject(SceneObjectGroup sceneObject, bool attachToBackup, bool sendClientUpdates) 396 protected bool AddSceneObject(SceneObjectGroup sceneObject, bool attachToBackup, bool sendClientUpdates)
397 { 397 {
398 if (sceneObject == null || sceneObject.RootPart.UUID == UUID.Zero) 398 if (sceneObject == null)
399 {
400 m_log.ErrorFormat("[SCENEGRAPH]: Tried to add null scene object");
401 return false;
402 }
403 if (sceneObject.UUID == UUID.Zero)
404 {
405 m_log.ErrorFormat(
406 "[SCENEGRAPH]: Tried to add scene object {0} to {1} with illegal UUID of {2}",
407 sceneObject.Name, m_parentScene.RegionInfo.RegionName, UUID.Zero);
408
399 return false; 409 return false;
410 }
400 411
401 if (Entities.ContainsKey(sceneObject.UUID)) 412 if (Entities.ContainsKey(sceneObject.UUID))
413 {
414// m_log.DebugFormat(
415// "[SCENEGRAPH]: Scene graph for {0} already contains object {1} in AddSceneObject()",
416// m_parentScene.RegionInfo.RegionName, sceneObject.UUID);
417
402 return false; 418 return false;
419 }
403 420
404// m_log.DebugFormat( 421// m_log.DebugFormat(
405// "[SCENEGRAPH]: Adding scene object {0} {1}, with {2} parts on {3}", 422// "[SCENEGRAPH]: Adding scene object {0} {1}, with {2} parts on {3}",