diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneManager.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneManager.cs b/OpenSim/Region/Framework/Scenes/SceneManager.cs index 86ba2aa..97ee844 100644 --- a/OpenSim/Region/Framework/Scenes/SceneManager.cs +++ b/OpenSim/Region/Framework/Scenes/SceneManager.cs | |||
@@ -47,6 +47,12 @@ namespace OpenSim.Region.Framework.Scenes | |||
47 | 47 | ||
48 | public event RestartSim OnRestartSim; | 48 | public event RestartSim OnRestartSim; |
49 | 49 | ||
50 | private static SceneManager m_instance = null; | ||
51 | public static SceneManager Instance | ||
52 | { | ||
53 | get { return m_instance; } | ||
54 | } | ||
55 | |||
50 | private readonly List<Scene> m_localScenes; | 56 | private readonly List<Scene> m_localScenes; |
51 | private Scene m_currentScene = null; | 57 | private Scene m_currentScene = null; |
52 | 58 | ||
@@ -84,6 +90,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
84 | 90 | ||
85 | public SceneManager() | 91 | public SceneManager() |
86 | { | 92 | { |
93 | m_instance = this; | ||
87 | m_localScenes = new List<Scene>(); | 94 | m_localScenes = new List<Scene>(); |
88 | } | 95 | } |
89 | 96 | ||