diff options
author | UbitUmarov | 2012-10-13 00:49:08 +0100 |
---|---|---|
committer | UbitUmarov | 2012-10-13 00:49:08 +0100 |
commit | 9ada03bcdd8bff22fea162672b5a3dde88d4d0c5 (patch) | |
tree | 4667036d8f94032b7c820f095f2134d07b9332c3 /OpenSim/Region/Physics/UbitMeshing | |
parent | longer meshs identification keys, so first part on disk cache is it's asset id (diff) | |
download | opensim-SC-9ada03bcdd8bff22fea162672b5a3dde88d4d0c5.zip opensim-SC-9ada03bcdd8bff22fea162672b5a3dde88d4d0c5.tar.gz opensim-SC-9ada03bcdd8bff22fea162672b5a3dde88d4d0c5.tar.bz2 opensim-SC-9ada03bcdd8bff22fea162672b5a3dde88d4d0c5.tar.xz |
missing file (again)
Diffstat (limited to 'OpenSim/Region/Physics/UbitMeshing')
-rw-r--r-- | OpenSim/Region/Physics/UbitMeshing/Meshmerizer.cs | 12 |
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++) |