* Updating OpenMetaverse.Http and Simian to new HttpServer.HttpListener.Create() requirement for an ILogWriter

* Move more state updates into ISceneProvider
* Lazy initialization of mesh data for SimulationObjects

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2436 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
John Hurliman
2009-02-13 22:21:01 +00:00
parent 5c14ce3265
commit 3b3946244a
10 changed files with 215 additions and 109 deletions

View File

@@ -17,8 +17,8 @@ namespace Simian
public bool Frozen;
protected Simian Server;
protected SimpleMesh[] Meshes = new SimpleMesh[4];
protected SimpleMesh[] WorldTransformedMeshes = new SimpleMesh[4];
protected SimpleMesh[] Meshes;
protected SimpleMesh[] WorldTransformedMeshes;
public SimulationObject(SimulationObject obj)
{
@@ -39,6 +39,8 @@ namespace Simian
{
int i = (int)lod;
if (Meshes == null) Meshes = new SimpleMesh[4];
if (Meshes[i] != null)
{
return Meshes[i];
@@ -56,6 +58,8 @@ namespace Simian
{
int i = (int)lod;
if (WorldTransformedMeshes == null) WorldTransformedMeshes = new SimpleMesh[4];
if (WorldTransformedMeshes[i] != null)
{
return WorldTransformedMeshes[i];