aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/UbitMeshing/Meshmerizer.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Physics/UbitMeshing/Meshmerizer.cs18
1 files changed, 9 insertions, 9 deletions
diff --git a/OpenSim/Region/Physics/UbitMeshing/Meshmerizer.cs b/OpenSim/Region/Physics/UbitMeshing/Meshmerizer.cs
index 2933d86..fabadd3 100644
--- a/OpenSim/Region/Physics/UbitMeshing/Meshmerizer.cs
+++ b/OpenSim/Region/Physics/UbitMeshing/Meshmerizer.cs
@@ -1113,17 +1113,17 @@ namespace OpenSim.Region.Physics.Meshing
1113 1113
1114 Mesh mesh = (Mesh)imesh; 1114 Mesh mesh = (Mesh)imesh;
1115 1115
1116 int curRefCount = mesh.RefCount;
1117 curRefCount--;
1118
1119 if (curRefCount > 0)
1120 {
1121 mesh.RefCount = curRefCount;
1122 return;
1123 }
1124
1125 lock (m_uniqueMeshes) 1116 lock (m_uniqueMeshes)
1126 { 1117 {
1118 int curRefCount = mesh.RefCount;
1119 curRefCount--;
1120
1121 if (curRefCount > 0)
1122 {
1123 mesh.RefCount = curRefCount;
1124 return;
1125 }
1126
1127 mesh.RefCount = 0; 1127 mesh.RefCount = 0;
1128 m_uniqueMeshes.Remove(mesh.Key); 1128 m_uniqueMeshes.Remove(mesh.Key);
1129 lock (m_uniqueReleasedMeshes) 1129 lock (m_uniqueReleasedMeshes)