mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
* Primitives are now loaded from Datastore during scene initialisation.
This commit is contained in:
@@ -146,6 +146,15 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
Avatars = new Dictionary<LLUUID, ScenePresence>();
|
||||
Prims = new Dictionary<LLUUID, SceneObject>();
|
||||
|
||||
MainLog.Instance.Verbose("World.cs - loading objects from datastore");
|
||||
List<SceneObject> PrimsFromDB = storageManager.DataStore.LoadObjects();
|
||||
foreach (SceneObject prim in PrimsFromDB)
|
||||
{
|
||||
Prims.Add(prim.uuid, prim);
|
||||
}
|
||||
MainLog.Instance.Verbose("World.cs - loaded " + PrimsFromDB.Count.ToString() + " object(s)");
|
||||
|
||||
|
||||
MainLog.Instance.Verbose("World.cs - creating LandMap");
|
||||
Terrain = new TerrainEngine();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user