Added placeholder for sitting on ground support. Doesn't work yet.

afrisby
Jeff Ames 2007-12-13 18:59:39 +00:00
parent 8d995a5a5d
commit 8338e4999f
1 changed files with 9 additions and 2 deletions

View File

@ -622,10 +622,16 @@ namespace OpenSim.Region.Environment.Scenes
if (PhysicsActor == null)
{
// Console.WriteLine("DEBUG: HandleAgentUpdate: null PhysicsActor!");
return;
}
if ((flags & (uint)AgentManager.ControlFlags.AGENT_CONTROL_SIT_ON_GROUND) != 0)
{
// TODO: This doesn't quite work yet -- probably a parent ID problem
// m_parentID = (what should this be?)
// SetMovementAnimation(Animations.AnimsLLUUID["SIT_GROUND"], 1);
}
if (m_allowMovement)
{
int i = 0;
@ -693,7 +699,8 @@ namespace OpenSim.Region.Environment.Scenes
m_pos += m_parentPosition + new LLVector3(0.0f, 0.0f, 2.0f * m_sitAvatarHeight);
m_parentPosition = new LLVector3();
AddToPhysicalScene();
if (m_physicsActor == null)
AddToPhysicalScene();
m_parentID = 0;
SendFullUpdateToAllClients();