mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
Move a call to RequestModuleInterface to a new scene callback function
because the current implementation would have always returned null
This commit is contained in:
@@ -509,6 +509,8 @@ namespace OpenSim.ApplicationPlugins.RegionModulesController
|
||||
{
|
||||
module.RegionLoaded(scene);
|
||||
}
|
||||
|
||||
scene.AllModulesLoaded();
|
||||
}
|
||||
|
||||
public void RemoveRegionFromModules (Scene scene)
|
||||
|
||||
@@ -1243,13 +1243,21 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
get { return m_sceneGraph; }
|
||||
}
|
||||
|
||||
protected virtual void RegisterDefaultSceneEvents()
|
||||
/// <summary>
|
||||
/// Called by the module loader when all modules are loaded, after each module's
|
||||
/// RegionLoaded hook is called. This is the earliest time where RequestModuleInterface
|
||||
/// may be used.
|
||||
/// </summary>
|
||||
public void AllModulesLoaded()
|
||||
{
|
||||
IDialogModule dm = RequestModuleInterface<IDialogModule>();
|
||||
|
||||
if (dm != null)
|
||||
m_eventManager.OnPermissionError += dm.SendAlertToUser;
|
||||
}
|
||||
|
||||
protected virtual void RegisterDefaultSceneEvents()
|
||||
{
|
||||
m_eventManager.OnSignificantClientMovement += HandleOnSignificantClientMovement;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user