* 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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user