Merge branch 'avination' into careminster

This commit is contained in:
Melanie
2013-01-13 13:44:28 +00:00
4 changed files with 42 additions and 32 deletions

View File

@@ -12689,7 +12689,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
if ((data & KeyframeMotion.DataFormat.Rotation) != 0)
{
LSL_Types.Quaternion tempq = frames.GetQuaternionItem(idx++);
frame.Rotation = new Quaternion((float)tempq.x, (float)tempq.y, (float)tempq.z, (float)tempq.s);
Quaternion q = new Quaternion((float)tempq.x, (float)tempq.y, (float)tempq.z, (float)tempq.s);
q.Normalize();
frame.Rotation = q;
}
float tempf = (float)frames.GetLSLFloatItem(idx++);