From 61446c0cd8b4a81ddf98d0a3c246f4c9d8239fed Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Sun, 15 Jul 2007 18:49:11 +0000 Subject: * Primitives are now loaded from Datastore during scene initialisation. --- OpenSim/Region/Environment/Scenes/Scene.cs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'OpenSim') diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index d9b630e..0186ba8 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs @@ -146,6 +146,15 @@ namespace OpenSim.Region.Environment.Scenes Avatars = new Dictionary(); Prims = new Dictionary(); + MainLog.Instance.Verbose("World.cs - loading objects from datastore"); + List 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(); -- cgit v1.1