Move loading of parcels to before script start. Scripts using parcel functions

can fail if no land is loaded
prebuild-update
Melanie 2010-06-24 03:24:38 +01:00
parent e22eddeee6
commit 5a071dc798
1 changed files with 3 additions and 3 deletions

View File

@ -367,13 +367,13 @@ namespace OpenSim
Environment.Exit(1);
}
scene.loadAllLandObjectsFromStorage(regionInfo.originRegionID);
scene.EventManager.TriggerParcelPrimCountUpdate();
// We need to do this after we've initialized the
// scripting engines.
scene.CreateScriptInstances();
scene.loadAllLandObjectsFromStorage(regionInfo.originRegionID);
scene.EventManager.TriggerParcelPrimCountUpdate();
m_sceneManager.Add(scene);
if (m_autoCreateClientStack)