From 602dafae55663d51064067e14072f0c0f4e8ed00 Mon Sep 17 00:00:00 2001 From: lbsa71 Date: Fri, 20 Feb 2009 17:18:07 +0000 Subject: * Renamed and encapsulated m_sceneGraph as SceneGraph for ccc --- .../Region/CoreModules/World/Estate/EstateManagementModule.cs | 2 +- OpenSim/Region/Framework/Scenes/Scene.cs | 11 ++++++++++- OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | 6 +++--- .../Region/OptionalModules/ContentManagementSystem/CMModel.cs | 2 +- 4 files changed, 15 insertions(+), 6 deletions(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs b/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs index 0f5ee2e..b567047 100644 --- a/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs +++ b/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs @@ -611,7 +611,7 @@ namespace OpenSim.Region.CoreModules.World.Estate } else if (reportType == 0) { - SceneData = m_scene.m_sceneGraph.GetTopScripts(); + SceneData = m_scene.SceneGraph.GetTopScripts(); } List SceneReport = new List(); diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index aa8b51a..9144bb9 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs @@ -73,7 +73,7 @@ namespace OpenSim.Region.Framework.Scenes /// The scene graph for this scene /// /// TODO: Possibly stop other classes being able to manipulate this directly. - public SceneGraph m_sceneGraph; + private SceneGraph m_sceneGraph; /// /// Are we applying physics to any of the prims in this scene? @@ -393,6 +393,15 @@ namespace OpenSim.Region.Framework.Scenes get { return shuttingdown; } } + /// + /// The scene graph for this scene + /// + /// TODO: Possibly stop other classes being able to manipulate this directly. + public SceneGraph SceneGraph + { + get { return m_sceneGraph; } + } + protected virtual void RegisterDefaultSceneEvents() { IDialogModule dm = RequestModuleInterface(); diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs index 6d0927b..69bc554 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs @@ -1116,13 +1116,13 @@ namespace OpenSim.Region.Framework.Scenes scriptScore = 0; scriptScore += (float)count; - SceneGraph d = m_scene.m_sceneGraph; + SceneGraph d = m_scene.SceneGraph; d.AddToScriptLPS(count); } public void AddActiveScriptCount(int count) { - SceneGraph d = m_scene.m_sceneGraph; + SceneGraph d = m_scene.SceneGraph; d.AddActiveScripts(count); } @@ -1858,7 +1858,7 @@ namespace OpenSim.Region.Framework.Scenes { if (m_scene == null) // Need to check here as it's null during object creation return; - m_scene.m_sceneGraph.AddToUpdateList(this); + m_scene.SceneGraph.AddToUpdateList(this); } /// diff --git a/OpenSim/Region/OptionalModules/ContentManagementSystem/CMModel.cs b/OpenSim/Region/OptionalModules/ContentManagementSystem/CMModel.cs index 761dca9..c9a760b 100644 --- a/OpenSim/Region/OptionalModules/ContentManagementSystem/CMModel.cs +++ b/OpenSim/Region/OptionalModules/ContentManagementSystem/CMModel.cs @@ -261,7 +261,7 @@ namespace OpenSim.Region.OptionalModules.ContentManagement ((SceneObjectGroup)scene.Entities[uuid]).DetachFromBackup(); scene.PhysicsScene.RemovePrim(((SceneObjectGroup)scene.Entities[uuid]).RootPart.PhysActor); scene.SendKillObject(scene.Entities[uuid].LocalId); - scene.m_sceneGraph.DeleteSceneObject(uuid, false); + scene.SceneGraph.DeleteSceneObject(uuid, false); ((SceneObjectGroup)scene.Entities[uuid]).DeleteGroup(false); } catch(Exception e) -- cgit v1.1