diff options
author | Charles Krinke | 2007-11-01 03:56:54 +0000 |
---|---|---|
committer | Charles Krinke | 2007-11-01 03:56:54 +0000 |
commit | 8af272b3abdb4ecc64fa7cf46ef0205e4398f01c (patch) | |
tree | 4100dee3fdad35cce23ce4cb645fa443bf7c90da /OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | |
parent | Thank you Melanie for a patch to SceneObjectPart.cs so that on first transmis... (diff) | |
download | opensim-SC-8af272b3abdb4ecc64fa7cf46ef0205e4398f01c.zip opensim-SC-8af272b3abdb4ecc64fa7cf46ef0205e4398f01c.tar.gz opensim-SC-8af272b3abdb4ecc64fa7cf46ef0205e4398f01c.tar.bz2 opensim-SC-8af272b3abdb4ecc64fa7cf46ef0205e4398f01c.tar.xz |
Thank you, Melanie for solving: When receiving an ObjectAdd packet, the Rotation member is silently ignored and the prim is created with 0,0,0,1 rotation. The patch introduces a fix that passes the Rotation parameter from the packet to the object and uses it in the actual object creation.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index 80723fa..dacac4b 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | |||
@@ -271,6 +271,11 @@ namespace OpenSim.Region.Environment.Scenes | |||
271 | { | 271 | { |
272 | } | 272 | } |
273 | 273 | ||
274 | public SceneObjectPart(ulong regionHandle, SceneObjectGroup parent, LLUUID ownerID, uint localID, | ||
275 | PrimitiveBaseShape shape, LLVector3 groupPosition, LLVector3 offsetPosition):this(regionHandle, parent, ownerID, localID, shape, groupPosition, LLQuaternion.Identity, offsetPosition) | ||
276 | { | ||
277 | } | ||
278 | |||
274 | /// <summary> | 279 | /// <summary> |
275 | /// Create a completely new SceneObjectPart (prim) | 280 | /// Create a completely new SceneObjectPart (prim) |
276 | /// </summary> | 281 | /// </summary> |
@@ -281,7 +286,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
281 | /// <param name="shape"></param> | 286 | /// <param name="shape"></param> |
282 | /// <param name="position"></param> | 287 | /// <param name="position"></param> |
283 | public SceneObjectPart(ulong regionHandle, SceneObjectGroup parent, LLUUID ownerID, uint localID, | 288 | public SceneObjectPart(ulong regionHandle, SceneObjectGroup parent, LLUUID ownerID, uint localID, |
284 | PrimitiveBaseShape shape, LLVector3 groupPosition, LLVector3 offsetPosition) | 289 | PrimitiveBaseShape shape, LLVector3 groupPosition, LLQuaternion rotationOffset, LLVector3 offsetPosition) |
285 | { | 290 | { |
286 | m_name = "Primitive"; | 291 | m_name = "Primitive"; |
287 | m_regionHandle = regionHandle; | 292 | m_regionHandle = regionHandle; |
@@ -297,7 +302,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
297 | 302 | ||
298 | GroupPosition = groupPosition; | 303 | GroupPosition = groupPosition; |
299 | OffsetPosition = offsetPosition; | 304 | OffsetPosition = offsetPosition; |
300 | RotationOffset = LLQuaternion.Identity; | 305 | RotationOffset = rotationOffset; |
301 | Velocity = new LLVector3(0, 0, 0); | 306 | Velocity = new LLVector3(0, 0, 0); |
302 | AngularVelocity = new LLVector3(0, 0, 0); | 307 | AngularVelocity = new LLVector3(0, 0, 0); |
303 | Acceleration = new LLVector3(0, 0, 0); | 308 | Acceleration = new LLVector3(0, 0, 0); |