file that depends on libomv changes
parent
a98b7fc389
commit
c0c91f3773
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue