diff options
author | UbitUmarov | 2012-10-07 23:54:15 +0100 |
---|---|---|
committer | UbitUmarov | 2012-10-07 23:54:15 +0100 |
commit | a1fcfe867786de121d0960e684252525781ac453 (patch) | |
tree | 96a019d2fc6019ef0a56eda7f13832c9b5d1e010 /OpenSim/Region/Physics/UbitMeshing | |
parent | bug fix + make costs visible for testing (diff) | |
download | opensim-SC_OLD-a1fcfe867786de121d0960e684252525781ac453.zip opensim-SC_OLD-a1fcfe867786de121d0960e684252525781ac453.tar.gz opensim-SC_OLD-a1fcfe867786de121d0960e684252525781ac453.tar.bz2 opensim-SC_OLD-a1fcfe867786de121d0960e684252525781ac453.tar.xz |
a few changes/fix (?)
Diffstat (limited to 'OpenSim/Region/Physics/UbitMeshing')
-rw-r--r-- | OpenSim/Region/Physics/UbitMeshing/Meshmerizer.cs | 18 |
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) |