Fix sitting and standing up

viewer-2-initial-appearance
Melanie 2010-11-02 21:28:24 +00:00
parent e327e990f5
commit 78a0ed3ff9
1 changed files with 14 additions and 5 deletions

View File

@ -872,6 +872,12 @@ namespace OpenSim.Region.Framework.Scenes
AddToPhysicalScene(isFlying); AddToPhysicalScene(isFlying);
if (m_appearance != null)
{
if (m_appearance.AvatarHeight > 0)
SetHeight(m_appearance.AvatarHeight);
}
if (m_forceFly) if (m_forceFly)
{ {
m_physicsActor.Flying = true; m_physicsActor.Flying = true;
@ -2391,11 +2397,14 @@ namespace OpenSim.Region.Framework.Scenes
if (m_appearance.Texture == null) if (m_appearance.Texture == null)
return; return;
if (LocalId == remoteAvatar.LocalId) // MT: This is needed for sit. It's legal to send it to oneself, and the name
{ // of the method is a misnomer
m_log.WarnFormat("[SCENEPRESENCE]: An agent is attempting to send avatar data to itself; {0}", UUID); //
return; // if (LocalId == remoteAvatar.LocalId)
} // {
// m_log.WarnFormat("[SCENEPRESENCE]: An agent is attempting to send avatar data to itself; {0}", UUID);
// return;
// }
if (IsChildAgent) if (IsChildAgent)
{ {