aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/PrimitiveBaseShape.cs
diff options
context:
space:
mode:
authorMelanie Thielker2008-11-19 06:25:34 +0000
committerMelanie Thielker2008-11-19 06:25:34 +0000
commitf518ca7feb33c0c1641ccb8f3956246b855f9b6c (patch)
tree8dafdff97f14290b259bb04a03c5e7bb98756c24 /OpenSim/Framework/PrimitiveBaseShape.cs
parentReverting the texture sending patch and the new libOMV. This makes this (diff)
downloadopensim-SC-f518ca7feb33c0c1641ccb8f3956246b855f9b6c.zip
opensim-SC-f518ca7feb33c0c1641ccb8f3956246b855f9b6c.tar.gz
opensim-SC-f518ca7feb33c0c1641ccb8f3956246b855f9b6c.tar.bz2
opensim-SC-f518ca7feb33c0c1641ccb8f3956246b855f9b6c.tar.xz
Reapply r7369 r7367 r7366 r7370 r7381. This brings it back up to the new
libOMV.
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/PrimitiveBaseShape.cs14
1 files changed, 7 insertions, 7 deletions
diff --git a/OpenSim/Framework/PrimitiveBaseShape.cs b/OpenSim/Framework/PrimitiveBaseShape.cs
index cd50e9e..adb55aa 100644
--- a/OpenSim/Framework/PrimitiveBaseShape.cs
+++ b/OpenSim/Framework/PrimitiveBaseShape.cs
@@ -874,7 +874,7 @@ namespace OpenSim.Framework
874 874
875 for (int k = 0; k < extraParamCount; k++) 875 for (int k = 0; k < extraParamCount; k++)
876 { 876 {
877 ushort epType = Helpers.BytesToUInt16(data, i); 877 ushort epType = Utils.BytesToUInt16(data, i);
878 878
879 i += 2; 879 i += 2;
880 // uint paramLength = Helpers.BytesToUIntBig(data, i); 880 // uint paramLength = Helpers.BytesToUIntBig(data, i);
@@ -1014,9 +1014,9 @@ namespace OpenSim.Framework
1014 _lightColorG = lColor.G; 1014 _lightColorG = lColor.G;
1015 _lightColorB = lColor.B; 1015 _lightColorB = lColor.B;
1016 1016
1017 _lightRadius = Helpers.BytesToFloat(data, pos + 4); 1017 _lightRadius = Utils.BytesToFloat(data, pos + 4);
1018 _lightCutoff = Helpers.BytesToFloat(data, pos + 8); 1018 _lightCutoff = Utils.BytesToFloat(data, pos + 8);
1019 _lightFalloff = Helpers.BytesToFloat(data, pos + 12); 1019 _lightFalloff = Utils.BytesToFloat(data, pos + 12);
1020 } 1020 }
1021 else 1021 else
1022 { 1022 {
@@ -1040,9 +1040,9 @@ namespace OpenSim.Framework
1040 Color4 tmpColor = new Color4(_lightColorR,_lightColorG,_lightColorB,_lightIntensity); 1040 Color4 tmpColor = new Color4(_lightColorR,_lightColorG,_lightColorB,_lightIntensity);
1041 1041
1042 tmpColor.GetBytes().CopyTo(data, 0); 1042 tmpColor.GetBytes().CopyTo(data, 0);
1043 Helpers.FloatToBytes(_lightRadius).CopyTo(data, 4); 1043 Utils.FloatToBytes(_lightRadius).CopyTo(data, 4);
1044 Helpers.FloatToBytes(_lightCutoff).CopyTo(data, 8); 1044 Utils.FloatToBytes(_lightCutoff).CopyTo(data, 8);
1045 Helpers.FloatToBytes(_lightFalloff).CopyTo(data, 12); 1045 Utils.FloatToBytes(_lightFalloff).CopyTo(data, 12);
1046 1046
1047 return data; 1047 return data;
1048 } 1048 }