fixed chatting while sitting

afrisby
Jeff Ames 2007-11-11 04:44:52 +00:00
parent 98fd8f099b
commit 33ac0653a3
1 changed files with 9 additions and 5 deletions

View File

@ -546,11 +546,12 @@ namespace OpenSim.Region.Environment.Scenes
if (m_parentID != 0)
{
SceneObjectPart part = m_scene.GetSceneObjectPart(m_parentID);
LLVector3 pos = new LLVector3();
if (part != null)
pos = part.AbsolutePosition + m_requestedSitOffset +
AbsolutePosition = part.AbsolutePosition + m_requestedSitOffset +
new LLVector3(0.0f, 0.0f, 2.0f*m_sitAvatarHeight);
MakeRootAgent(pos, false);
AddToPhysicalScene();
m_parentID = 0;
SendFullUpdateToAllClients();
}
@ -623,7 +624,10 @@ namespace OpenSim.Region.Environment.Scenes
AbsolutePosition = m_requestedSitOffset +
new LLVector3(m_physicsActor.Size.X/2.7f, 0f, m_physicsActor.Size.Z/1.45f);
m_parentID = m_requestedSitTargetID;
MakeChildAgent();
Velocity = new LLVector3(0, 0, 0);
RemoveFromPhysicalScene();
SendAnimPack(Animations.AnimsLLUUID["SIT"], 1);
SendFullUpdateToAllClients();
}