diff options
author | dahlia | 2015-05-03 17:05:48 -0700 |
---|---|---|
committer | dahlia | 2015-05-03 17:05:48 -0700 |
commit | 60e719286bc82cf9353e508af14fe3252eeddc45 (patch) | |
tree | 7b679654d004120c2efa663166675c91e9b033f4 | |
parent | Mantis #7514 (diff) | |
download | opensim-SC-60e719286bc82cf9353e508af14fe3252eeddc45.zip opensim-SC-60e719286bc82cf9353e508af14fe3252eeddc45.tar.gz opensim-SC-60e719286bc82cf9353e508af14fe3252eeddc45.tar.bz2 opensim-SC-60e719286bc82cf9353e508af14fe3252eeddc45.tar.xz |
Make Meshmerizer mesh cache static so it can be shared across class instances
-rw-r--r-- | OpenSim/Region/Physics/Meshing/Meshmerizer.cs | 3 |
1 files changed, 2 insertions, 1 deletions
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 | |||
84 | private List<List<Vector3>> mConvexHulls = null; | 84 | private List<List<Vector3>> mConvexHulls = null; |
85 | private List<Vector3> mBoundingHull = null; | 85 | private List<Vector3> mBoundingHull = null; |
86 | 86 | ||
87 | private Dictionary<ulong, Mesh> m_uniqueMeshes = new Dictionary<ulong, Mesh>(); | 87 | // Mesh cache. Static so it can be shared across instances of this class |
88 | private static Dictionary<ulong, Mesh> m_uniqueMeshes = new Dictionary<ulong, Mesh>(); | ||
88 | 89 | ||
89 | public Meshmerizer(IConfigSource config) | 90 | public Meshmerizer(IConfigSource config) |
90 | { | 91 | { |