Make Meshmerizer mesh cache static so it can be shared across class instances

inv-download
dahlia 2015-05-03 17:05:48 -07:00
parent 877371411a
commit 60e719286b
1 changed files with 2 additions and 1 deletions

View File

@ -84,7 +84,8 @@ namespace OpenSim.Region.Physics.Meshing
private List<List<Vector3>> mConvexHulls = null;
private List<Vector3> mBoundingHull = null;
private Dictionary<ulong, Mesh> m_uniqueMeshes = new Dictionary<ulong, Mesh>();
// Mesh cache. Static so it can be shared across instances of this class
private static Dictionary<ulong, Mesh> m_uniqueMeshes = new Dictionary<ulong, Mesh>();
public Meshmerizer(IConfigSource config)
{