aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Region/CoreModules/Framework/DynamicAttributes/DAExampleModule.cs18
1 files changed, 13 insertions, 5 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/DynamicAttributes/DAExampleModule.cs b/OpenSim/Region/CoreModules/Framework/DynamicAttributes/DAExampleModule.cs
index 084fb5f..d36f65a 100644
--- a/OpenSim/Region/CoreModules/Framework/DynamicAttributes/DAExampleModule.cs
+++ b/OpenSim/Region/CoreModules/Framework/DynamicAttributes/DAExampleModule.cs
@@ -45,7 +45,9 @@ namespace OpenSim.Region.Framework.DynamicAttributes.DAExampleModule
45 public class DAExampleModule : INonSharedRegionModule 45 public class DAExampleModule : INonSharedRegionModule
46 { 46 {
47 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 47 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
48 48
49 private static readonly bool ENABLED = false; // enable for testing
50
49 protected Scene m_scene; 51 protected Scene m_scene;
50 protected IDialogModule m_dialogMod; 52 protected IDialogModule m_dialogMod;
51 53
@@ -56,14 +58,20 @@ namespace OpenSim.Region.Framework.DynamicAttributes.DAExampleModule
56 58
57 public void AddRegion(Scene scene) 59 public void AddRegion(Scene scene)
58 { 60 {
59 m_scene = scene; 61 if (ENABLED)
60 m_scene.EventManager.OnSceneGroupMove += OnSceneGroupMove; 62 {
61 m_dialogMod = m_scene.RequestModuleInterface<IDialogModule>(); 63 m_scene = scene;
64 m_scene.EventManager.OnSceneGroupMove += OnSceneGroupMove;
65 m_dialogMod = m_scene.RequestModuleInterface<IDialogModule>();
66 }
62 } 67 }
63 68
64 public void RemoveRegion(Scene scene) 69 public void RemoveRegion(Scene scene)
65 { 70 {
66 m_scene.EventManager.OnSceneGroupMove -= OnSceneGroupMove; 71 if (ENABLED)
72 {
73 m_scene.EventManager.OnSceneGroupMove -= OnSceneGroupMove;
74 }
67 } 75 }
68 76
69 public void RegionLoaded(Scene scene) {} 77 public void RegionLoaded(Scene scene) {}