aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorubit2012-10-13 01:49:49 +0200
committerubit2012-10-13 01:49:49 +0200
commit4bd64c887dc9a5a152445b6d6965f51627f34801 (patch)
treee26bb984fa8d2d26672d11bdbbaaa52f19f29ac6 /OpenSim/Region
parentMerge branch 'ubitwork' of ssh://3dhosting.de/var/git/careminster into ubitwork (diff)
parent missing file (again) (diff)
downloadopensim-SC-4bd64c887dc9a5a152445b6d6965f51627f34801.zip
opensim-SC-4bd64c887dc9a5a152445b6d6965f51627f34801.tar.gz
opensim-SC-4bd64c887dc9a5a152445b6d6965f51627f34801.tar.bz2
opensim-SC-4bd64c887dc9a5a152445b6d6965f51627f34801.tar.xz
Merge branch 'ubitwork' of ssh://3dhosting.de/var/git/careminster into ubitwork
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Physics/UbitMeshing/Meshmerizer.cs12
1 files changed, 8 insertions, 4 deletions
diff --git a/OpenSim/Region/Physics/UbitMeshing/Meshmerizer.cs b/OpenSim/Region/Physics/UbitMeshing/Meshmerizer.cs
index 952ecc8..2fe34e3 100644
--- a/OpenSim/Region/Physics/UbitMeshing/Meshmerizer.cs
+++ b/OpenSim/Region/Physics/UbitMeshing/Meshmerizer.cs
@@ -936,13 +936,14 @@ namespace OpenSim.Region.Physics.Meshing
936 Byte[] someBytes; 936 Byte[] someBytes;
937 937
938 key.hashB = 5181; 938 key.hashB = 5181;
939 key.hashC = 5181;
939 ulong hash = 5381; 940 ulong hash = 5381;
940 941
941 if (primShape.SculptEntry) 942 if (primShape.SculptEntry)
942 { 943 {
943 key.uuid = primShape.SculptTexture; 944 key.uuid = primShape.SculptTexture;
944 key.hashB = mdjb2(key.hashB, primShape.SculptType); 945 key.hashC = mdjb2(key.hashC, primShape.SculptType);
945 key.hashB = mdjb2(key.hashB, primShape.PCode); 946 key.hashC = mdjb2(key.hashC, primShape.PCode);
946 } 947 }
947 else 948 else
948 { 949 {
@@ -954,6 +955,9 @@ namespace OpenSim.Region.Physics.Meshing
954 hash = mdjb2(hash, primShape.PathScaleX); 955 hash = mdjb2(hash, primShape.PathScaleX);
955 hash = mdjb2(hash, primShape.PathScaleY); 956 hash = mdjb2(hash, primShape.PathScaleY);
956 hash = mdjb2(hash, primShape.PathShearX); 957 hash = mdjb2(hash, primShape.PathShearX);
958 key.hashA = hash;
959 key.hashA |= 0xf000000000000000;
960 hash = key.hashB;
957 hash = mdjb2(hash, primShape.PathShearY); 961 hash = mdjb2(hash, primShape.PathShearY);
958 hash = mdjb2(hash, (byte)primShape.PathTwist); 962 hash = mdjb2(hash, (byte)primShape.PathTwist);
959 hash = mdjb2(hash, (byte)primShape.PathTwistBegin); 963 hash = mdjb2(hash, (byte)primShape.PathTwistBegin);
@@ -966,10 +970,10 @@ namespace OpenSim.Region.Physics.Meshing
966 hash = mdjb2(hash, primShape.ProfileEnd); 970 hash = mdjb2(hash, primShape.ProfileEnd);
967 hash = mdjb2(hash, primShape.ProfileHollow); 971 hash = mdjb2(hash, primShape.ProfileHollow);
968 hash = mdjb2(hash, primShape.PCode); 972 hash = mdjb2(hash, primShape.PCode);
969 key.hashA = hash; 973 key.hashB = hash;
970 } 974 }
971 975
972 hash = key.hashB; 976 hash = key.hashC;
973 977
974 someBytes = size.GetBytes(); 978 someBytes = size.GetBytes();
975 for (int i = 0; i < someBytes.Length; i++) 979 for (int i = 0; i < someBytes.Length; i++)