From 60e719286bc82cf9353e508af14fe3252eeddc45 Mon Sep 17 00:00:00 2001 From: dahlia Date: Sun, 3 May 2015 17:05:48 -0700 Subject: Make Meshmerizer mesh cache static so it can be shared across class instances --- OpenSim/Region/Physics/Meshing/Meshmerizer.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenSim/Region/Physics/Meshing/Meshmerizer.cs b/OpenSim/Region/Physics/Meshing/Meshmerizer.cs index d96de4a..24983ab 100644 --- a/OpenSim/Region/Physics/Meshing/Meshmerizer.cs +++ b/OpenSim/Region/Physics/Meshing/Meshmerizer.cs @@ -84,7 +84,8 @@ namespace OpenSim.Region.Physics.Meshing private List> mConvexHulls = null; private List mBoundingHull = null; - private Dictionary m_uniqueMeshes = new Dictionary(); + // Mesh cache. Static so it can be shared across instances of this class + private static Dictionary m_uniqueMeshes = new Dictionary(); public Meshmerizer(IConfigSource config) { -- cgit v1.1