diff options
author | Jeff Ames | 2007-12-13 18:59:39 +0000 |
---|---|---|
committer | Jeff Ames | 2007-12-13 18:59:39 +0000 |
commit | 8338e4999f681c4f6bad404af20a350f881f5ba0 (patch) | |
tree | b0a0c989bbe273fd8bf26db5c56c8b4caee83e55 | |
parent | Minor cleanup (diff) | |
download | opensim-SC-8338e4999f681c4f6bad404af20a350f881f5ba0.zip opensim-SC-8338e4999f681c4f6bad404af20a350f881f5ba0.tar.gz opensim-SC-8338e4999f681c4f6bad404af20a350f881f5ba0.tar.bz2 opensim-SC-8338e4999f681c4f6bad404af20a350f881f5ba0.tar.xz |
Added placeholder for sitting on ground support. Doesn't work yet.
-rw-r--r-- | OpenSim/Region/Environment/Scenes/ScenePresence.cs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs index 3460e8f..a0bab1a 100644 --- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs | |||
@@ -622,10 +622,16 @@ namespace OpenSim.Region.Environment.Scenes | |||
622 | 622 | ||
623 | if (PhysicsActor == null) | 623 | if (PhysicsActor == null) |
624 | { | 624 | { |
625 | // Console.WriteLine("DEBUG: HandleAgentUpdate: null PhysicsActor!"); | ||
626 | return; | 625 | return; |
627 | } | 626 | } |
628 | 627 | ||
628 | if ((flags & (uint)AgentManager.ControlFlags.AGENT_CONTROL_SIT_ON_GROUND) != 0) | ||
629 | { | ||
630 | // TODO: This doesn't quite work yet -- probably a parent ID problem | ||
631 | // m_parentID = (what should this be?) | ||
632 | // SetMovementAnimation(Animations.AnimsLLUUID["SIT_GROUND"], 1); | ||
633 | } | ||
634 | |||
629 | if (m_allowMovement) | 635 | if (m_allowMovement) |
630 | { | 636 | { |
631 | int i = 0; | 637 | int i = 0; |
@@ -693,7 +699,8 @@ namespace OpenSim.Region.Environment.Scenes | |||
693 | m_pos += m_parentPosition + new LLVector3(0.0f, 0.0f, 2.0f * m_sitAvatarHeight); | 699 | m_pos += m_parentPosition + new LLVector3(0.0f, 0.0f, 2.0f * m_sitAvatarHeight); |
694 | m_parentPosition = new LLVector3(); | 700 | m_parentPosition = new LLVector3(); |
695 | 701 | ||
696 | AddToPhysicalScene(); | 702 | if (m_physicsActor == null) |
703 | AddToPhysicalScene(); | ||
697 | 704 | ||
698 | m_parentID = 0; | 705 | m_parentID = 0; |
699 | SendFullUpdateToAllClients(); | 706 | SendFullUpdateToAllClients(); |