aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim.Framework/PrimData.cs
diff options
context:
space:
mode:
authorMW2007-04-03 13:37:11 +0000
committerMW2007-04-03 13:37:11 +0000
commit56e6587c9f3ff9b8b9e48ff20a21244b739e2081 (patch)
tree4ef13347d53989281c8d554be8102f4227bcf3df /OpenSim.Framework/PrimData.cs
parentOpenSim no longer uses OpenSim.Config.SimConfigDb4o, it now uses OpenSim.Gene... (diff)
downloadopensim-SC-56e6587c9f3ff9b8b9e48ff20a21244b739e2081.zip
opensim-SC-56e6587c9f3ff9b8b9e48ff20a21244b739e2081.tar.gz
opensim-SC-56e6587c9f3ff9b8b9e48ff20a21244b739e2081.tar.bz2
opensim-SC-56e6587c9f3ff9b8b9e48ff20a21244b739e2081.tar.xz
Temporary fix for the object taking bug
Diffstat (limited to '')
-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);