aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Application
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Application')
-rw-r--r--OpenSim/Region/Application/OpenSimMain.cs11
1 files changed, 6 insertions, 5 deletions
diff --git a/OpenSim/Region/Application/OpenSimMain.cs b/OpenSim/Region/Application/OpenSimMain.cs
index f4e774b..c653192 100644
--- a/OpenSim/Region/Application/OpenSimMain.cs
+++ b/OpenSim/Region/Application/OpenSimMain.cs
@@ -426,23 +426,24 @@ namespace OpenSim
426 UDPServer udpServer; 426 UDPServer udpServer;
427 Scene scene = SetupScene(regionInfo, out udpServer, m_permissions); 427 Scene scene = SetupScene(regionInfo, out udpServer, m_permissions);
428 428
429 MainLog.Instance.Verbose("MODULES", "Loading Region's Modules"); 429 MainLog.Instance.Verbose("MODULES", "Loading Region's modules");
430 430
431 m_moduleLoader.PickupModules(scene, "."); 431 m_moduleLoader.PickupModules(scene, ".");
432 //m_moduleLoader.PickupModules(scene, "ScriptEngines"); 432 //m_moduleLoader.PickupModules(scene, "ScriptEngines");
433 //m_moduleLoader.LoadRegionModules(Path.Combine("ScriptEngines", m_scriptEngine), scene); 433 //m_moduleLoader.LoadRegionModules(Path.Combine("ScriptEngines", m_scriptEngine), scene);
434 MainLog.Instance.Verbose("MODULES", "Loading scripting engine modules"); 434 MainLog.Instance.Verbose("MODULES", "Loading scripting engine modules");
435 m_moduleLoader.LoadRegionModules(Path.Combine("ScriptEngines", m_scriptEngine), scene); 435 m_moduleLoader.LoadRegionModules(Path.Combine("ScriptEngines", m_scriptEngine), scene);
436
437
438 436
439 m_moduleLoader.InitialiseSharedModules(scene); 437 m_moduleLoader.InitialiseSharedModules(scene);
440 scene.SetModuleInterfaces(); 438 scene.SetModuleInterfaces();
441 439
442 //Server side object editing permissions checking 440 //Server side object editing permissions checking
443 scene.PermissionsMngr.BypassPermissions = !m_permissions; 441 scene.PermissionsMngr.BypassPermissions = !m_permissions;
442
443 // We need to do this after we've initialized the scripting engines.
444 scene.StartScripts();
444 445
445 m_sceneManager.Add(scene); 446 m_sceneManager.Add(scene);
446 447
447 m_udpServers.Add(udpServer); 448 m_udpServers.Add(udpServer);
448 m_regionData.Add(regionInfo); 449 m_regionData.Add(regionInfo);