Disabled DAExampleModule
parent
af6a7cf95d
commit
23f0610f0c
|
@ -45,7 +45,9 @@ namespace OpenSim.Region.Framework.DynamicAttributes.DAExampleModule
|
||||||
public class DAExampleModule : INonSharedRegionModule
|
public class DAExampleModule : INonSharedRegionModule
|
||||||
{
|
{
|
||||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||||
|
|
||||||
|
private static readonly bool ENABLED = false; // enable for testing
|
||||||
|
|
||||||
protected Scene m_scene;
|
protected Scene m_scene;
|
||||||
protected IDialogModule m_dialogMod;
|
protected IDialogModule m_dialogMod;
|
||||||
|
|
||||||
|
@ -56,14 +58,20 @@ namespace OpenSim.Region.Framework.DynamicAttributes.DAExampleModule
|
||||||
|
|
||||||
public void AddRegion(Scene scene)
|
public void AddRegion(Scene scene)
|
||||||
{
|
{
|
||||||
m_scene = scene;
|
if (ENABLED)
|
||||||
m_scene.EventManager.OnSceneGroupMove += OnSceneGroupMove;
|
{
|
||||||
m_dialogMod = m_scene.RequestModuleInterface<IDialogModule>();
|
m_scene = scene;
|
||||||
|
m_scene.EventManager.OnSceneGroupMove += OnSceneGroupMove;
|
||||||
|
m_dialogMod = m_scene.RequestModuleInterface<IDialogModule>();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void RemoveRegion(Scene scene)
|
public void RemoveRegion(Scene scene)
|
||||||
{
|
{
|
||||||
m_scene.EventManager.OnSceneGroupMove -= OnSceneGroupMove;
|
if (ENABLED)
|
||||||
|
{
|
||||||
|
m_scene.EventManager.OnSceneGroupMove -= OnSceneGroupMove;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void RegionLoaded(Scene scene) {}
|
public void RegionLoaded(Scene scene) {}
|
||||||
|
|
Loading…
Reference in New Issue