From c0c91f3773cc06c98863e9498a4613f35d9a3084 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Thu, 10 Jan 2019 18:24:29 +0000 Subject: [PATCH] file that depends on libomv changes --- .../Scenes/Animation/BinBVHAnimation.cs | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/OpenSim/Region/Framework/Scenes/Animation/BinBVHAnimation.cs b/OpenSim/Region/Framework/Scenes/Animation/BinBVHAnimation.cs index def993f128..748d14de2e 100644 --- a/OpenSim/Region/Framework/Scenes/Animation/BinBVHAnimation.cs +++ b/OpenSim/Region/Framework/Scenes/Animation/BinBVHAnimation.cs @@ -409,20 +409,11 @@ namespace OpenSim.Region.Framework.Scenes.Animation for (int j = 0; j < keycount; j++) { binBVHJointKey pJKey = new binBVHJointKey(); - if (!BitConverter.IsLittleEndian) - { - pJKey.time = Utils.UInt16ToFloat(BinBVHUtil.EndianSwap(data, i, 2), 0, InPoint, OutPoint); i += 2; - x = Utils.UInt16ToFloat(BinBVHUtil.EndianSwap(data, i, 2), 0, min, max); i += 2; - y = Utils.UInt16ToFloat(BinBVHUtil.EndianSwap(data, i, 2), 0, min, max); i += 2; - z = Utils.UInt16ToFloat(BinBVHUtil.EndianSwap(data, i, 2), 0, min, max); i += 2; - } - else - { - pJKey.time = Utils.UInt16ToFloat(data, i, InPoint, OutPoint); i += 2; - x = Utils.UInt16ToFloat(data, i, min, max); i += 2; - y = Utils.UInt16ToFloat(data, i, min, max); i += 2; - z = Utils.UInt16ToFloat(data, i, min, max); i += 2; - } + pJKey.time = Utils.BytesUInt16ToFloat(data, i, InPoint, OutPoint); i += 2; + x = Utils.BytesUInt16ToFloat(data, i, min, max); i += 2; + y = Utils.BytesUInt16ToFloat(data, i, min, max); i += 2; + z = Utils.BytesUInt16ToFloat(data, i, min, max); i += 2; + pJKey.key_element = new Vector3(x, y, z); m_keys[j] = pJKey; }