file that depends on libomv changes

0.9.1.0-post-fixes
UbitUmarov 2019-01-10 18:24:29 +00:00
parent a98b7fc389
commit c0c91f3773
1 changed files with 5 additions and 14 deletions

View File

@ -409,20 +409,11 @@ namespace OpenSim.Region.Framework.Scenes.Animation
for (int j = 0; j < keycount; j++) for (int j = 0; j < keycount; j++)
{ {
binBVHJointKey pJKey = new binBVHJointKey(); binBVHJointKey pJKey = new binBVHJointKey();
if (!BitConverter.IsLittleEndian) pJKey.time = Utils.BytesUInt16ToFloat(data, i, InPoint, OutPoint); i += 2;
{ x = Utils.BytesUInt16ToFloat(data, i, min, max); i += 2;
pJKey.time = Utils.UInt16ToFloat(BinBVHUtil.EndianSwap(data, i, 2), 0, InPoint, OutPoint); i += 2; y = Utils.BytesUInt16ToFloat(data, i, min, max); i += 2;
x = Utils.UInt16ToFloat(BinBVHUtil.EndianSwap(data, i, 2), 0, min, max); i += 2; z = Utils.BytesUInt16ToFloat(data, i, 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.key_element = new Vector3(x, y, z); pJKey.key_element = new Vector3(x, y, z);
m_keys[j] = pJKey; m_keys[j] = pJKey;
} }