aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes
diff options
context:
space:
mode:
authorJeff Ames2007-11-11 04:44:52 +0000
committerJeff Ames2007-11-11 04:44:52 +0000
commit33ac0653a34a22c6e41644d1fe834ca1ec206362 (patch)
tree68cbb9a1f6f6e79fbd256ed3316b7322007260de /OpenSim/Region/Environment/Scenes
parentBetter moon with new improved alpha-channel action! (diff)
downloadopensim-SC-33ac0653a34a22c6e41644d1fe834ca1ec206362.zip
opensim-SC-33ac0653a34a22c6e41644d1fe834ca1ec206362.tar.gz
opensim-SC-33ac0653a34a22c6e41644d1fe834ca1ec206362.tar.bz2
opensim-SC-33ac0653a34a22c6e41644d1fe834ca1ec206362.tar.xz
fixed chatting while sitting
Diffstat (limited to 'OpenSim/Region/Environment/Scenes')
-rw-r--r--OpenSim/Region/Environment/Scenes/ScenePresence.cs14
1 files changed, 9 insertions, 5 deletions
diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs
index 608efc3..76d307f 100644
--- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs
@@ -546,11 +546,12 @@ namespace OpenSim.Region.Environment.Scenes
546 if (m_parentID != 0) 546 if (m_parentID != 0)
547 { 547 {
548 SceneObjectPart part = m_scene.GetSceneObjectPart(m_parentID); 548 SceneObjectPart part = m_scene.GetSceneObjectPart(m_parentID);
549 LLVector3 pos = new LLVector3();
550 if (part != null) 549 if (part != null)
551 pos = part.AbsolutePosition + m_requestedSitOffset + 550 AbsolutePosition = part.AbsolutePosition + m_requestedSitOffset +
552 new LLVector3(0.0f, 0.0f, 2.0f*m_sitAvatarHeight); 551 new LLVector3(0.0f, 0.0f, 2.0f*m_sitAvatarHeight);
553 MakeRootAgent(pos, false); 552
553 AddToPhysicalScene();
554
554 m_parentID = 0; 555 m_parentID = 0;
555 SendFullUpdateToAllClients(); 556 SendFullUpdateToAllClients();
556 } 557 }
@@ -623,7 +624,10 @@ namespace OpenSim.Region.Environment.Scenes
623 AbsolutePosition = m_requestedSitOffset + 624 AbsolutePosition = m_requestedSitOffset +
624 new LLVector3(m_physicsActor.Size.X/2.7f, 0f, m_physicsActor.Size.Z/1.45f); 625 new LLVector3(m_physicsActor.Size.X/2.7f, 0f, m_physicsActor.Size.Z/1.45f);
625 m_parentID = m_requestedSitTargetID; 626 m_parentID = m_requestedSitTargetID;
626 MakeChildAgent(); 627
628 Velocity = new LLVector3(0, 0, 0);
629 RemoveFromPhysicalScene();
630
627 SendAnimPack(Animations.AnimsLLUUID["SIT"], 1); 631 SendAnimPack(Animations.AnimsLLUUID["SIT"], 1);
628 SendFullUpdateToAllClients(); 632 SendFullUpdateToAllClients();
629 } 633 }