aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim.Framework
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim.Framework')
-rw-r--r--OpenSim.Framework/PrimData.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim.Framework/PrimData.cs b/OpenSim.Framework/PrimData.cs
index ce53c28..ee4188d 100644
--- a/OpenSim.Framework/PrimData.cs
+++ b/OpenSim.Framework/PrimData.cs
@@ -151,6 +151,10 @@ namespace OpenSim.Framework.Assets
151 bytes[i++] = (byte)((this.BaseMask >> 16) % 256); 151 bytes[i++] = (byte)((this.BaseMask >> 16) % 256);
152 bytes[i++] = (byte)((this.BaseMask >> 24) % 256); 152 bytes[i++] = (byte)((this.BaseMask >> 24) % 256);
153 Array.Copy(this.Position.GetBytes(), 0, bytes, i, 12); i += 12; 153 Array.Copy(this.Position.GetBytes(), 0, bytes, i, 12); i += 12;
154 if (this.Rotation == new LLQuaternion(0,0,0,0))
155 {
156 this.Rotation = new LLQuaternion(0, 1, 0, 0);
157 }
154 Array.Copy(this.Rotation.GetBytes(), 0, bytes, i, 12); i += 12; 158 Array.Copy(this.Rotation.GetBytes(), 0, bytes, i, 12); i += 12;
155 bytes[i++] = (byte)(this.LocalID % 256); 159 bytes[i++] = (byte)(this.LocalID % 256);
156 bytes[i++] = (byte)((this.LocalID >> 8) % 256); 160 bytes[i++] = (byte)((this.LocalID >> 8) % 256);