Temporary fix for the object taking bug

This commit is contained in:
MW
2007-04-03 13:37:11 +00:00
parent fdc9ed89b4
commit 56e6587c9f
8 changed files with 33 additions and 69 deletions

View File

@@ -151,6 +151,10 @@ namespace OpenSim.Framework.Assets
bytes[i++] = (byte)((this.BaseMask >> 16) % 256);
bytes[i++] = (byte)((this.BaseMask >> 24) % 256);
Array.Copy(this.Position.GetBytes(), 0, bytes, i, 12); i += 12;
if (this.Rotation == new LLQuaternion(0,0,0,0))
{
this.Rotation = new LLQuaternion(0, 1, 0, 0);
}
Array.Copy(this.Rotation.GetBytes(), 0, bytes, i, 12); i += 12;
bytes[i++] = (byte)(this.LocalID % 256);
bytes[i++] = (byte)((this.LocalID >> 8) % 256);