aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/Scene.cs
diff options
context:
space:
mode:
authorCharles Krinke2007-11-01 03:56:54 +0000
committerCharles Krinke2007-11-01 03:56:54 +0000
commit8af272b3abdb4ecc64fa7cf46ef0205e4398f01c (patch)
tree4100dee3fdad35cce23ce4cb645fa443bf7c90da /OpenSim/Region/Environment/Scenes/Scene.cs
parentThank you Melanie for a patch to SceneObjectPart.cs so that on first transmis... (diff)
downloadopensim-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/Scene.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs
index e37ad59..8da22c4 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.cs
@@ -568,12 +568,12 @@ namespace OpenSim.Region.Environment.Scenes
568 /// </summary> 568 /// </summary>
569 /// <param name="addPacket"></param> 569 /// <param name="addPacket"></param>
570 /// <param name="ownerID"></param> 570 /// <param name="ownerID"></param>
571 public void AddNewPrim(LLUUID ownerID, LLVector3 pos, PrimitiveBaseShape shape) 571 public void AddNewPrim(LLUUID ownerID, LLVector3 pos, LLQuaternion rot, PrimitiveBaseShape shape)
572 { 572 {
573 if (PermissionsMngr.CanRezObject(ownerID, pos)) 573 if (PermissionsMngr.CanRezObject(ownerID, pos))
574 { 574 {
575 SceneObjectGroup sceneOb = 575 SceneObjectGroup sceneOb =
576 new SceneObjectGroup(this, m_regionHandle, ownerID, PrimIDAllocate(), pos, shape); 576 new SceneObjectGroup(this, m_regionHandle, ownerID, PrimIDAllocate(), pos, rot, shape);
577 AddEntity(sceneOb); 577 AddEntity(sceneOb);
578 SceneObjectPart rootPart = sceneOb.GetChildPart(sceneOb.UUID); 578 SceneObjectPart rootPart = sceneOb.GetChildPart(sceneOb.UUID);
579 // if grass or tree, make phantom 579 // if grass or tree, make phantom
@@ -1565,4 +1565,4 @@ namespace OpenSim.Region.Environment.Scenes
1565 } 1565 }
1566 } 1566 }
1567 } 1567 }
1568} \ No newline at end of file 1568}