From c65415d320501771920982523243102f1436c170 Mon Sep 17 00:00:00 2001 From: Jeff Ames Date: Tue, 12 Aug 2008 21:38:52 +0000 Subject: [PATCH] Thanks HomerHorwitz for a patch to enable the Stand Up button when sitting on the ground. (bug #1932) --- OpenSim/Region/Environment/Scenes/ScenePresence.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs index 5c90bf3143..342fd03769 100644 --- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs @@ -887,9 +887,11 @@ namespace OpenSim.Region.Environment.Scenes if ((flags & (uint) AgentManager.ControlFlags.AGENT_CONTROL_SIT_ON_GROUND) != 0) { - // TODO: This doesn't enable the "stand up" button on the viewer yet (probably a parent ID problem) - // m_parentID = ??? - TrySetMovementAnimation("SIT_GROUND"); + // TODO: This doesn't prevent the user from walking yet. + // Setting parent ID would fix this, if we knew what value + // to use. Or we could add a m_isSitting variable. + + TrySetMovementAnimation("SIT_GROUND_CONSTRAINED"); } // In the future, these values might need to go global. // Here's where you get them.