aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/PrimitiveBaseShape.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/PrimitiveBaseShape.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenSim/Framework/PrimitiveBaseShape.cs b/OpenSim/Framework/PrimitiveBaseShape.cs
index 9cfc7ed..c6ccc9e 100644
--- a/OpenSim/Framework/PrimitiveBaseShape.cs
+++ b/OpenSim/Framework/PrimitiveBaseShape.cs
@@ -881,6 +881,11 @@ namespace OpenSim.Framework
881 881
882 public ulong GetMeshKey(Vector3 size, float lod) 882 public ulong GetMeshKey(Vector3 size, float lod)
883 { 883 {
884 return GetMeshKey(size, lod, false);
885 }
886
887 public ulong GetMeshKey(Vector3 size, float lod, bool convex)
888 {
884 ulong hash = 5381; 889 ulong hash = 5381;
885 890
886 hash = djb2(hash, this.PathCurve); 891 hash = djb2(hash, this.PathCurve);
@@ -926,6 +931,9 @@ namespace OpenSim.Framework
926 hash = djb2(hash, scaleBytes[i]); 931 hash = djb2(hash, scaleBytes[i]);
927 } 932 }
928 933
934 if(convex)
935 hash = djb2(hash, 0xa5);
936
929 return hash; 937 return hash;
930 } 938 }
931 939