diff options
author | Melanie | 2010-05-23 06:09:54 +0100 |
---|---|---|
committer | Melanie | 2010-05-23 06:09:54 +0100 |
commit | a9dad994324122555c436a5db14ff4072fbf6c89 (patch) | |
tree | 3b5dfbb8f6d989cff561fd304c822e7cbfc7c61a /OpenSim/Region/Framework/Scenes | |
parent | Merge branch 'master' into careminster-presence-refactor (diff) | |
parent | Apply http://opensimulator.org/mantis/view.php?id=4632 (diff) | |
download | opensim-SC-a9dad994324122555c436a5db14ff4072fbf6c89.zip opensim-SC-a9dad994324122555c436a5db14ff4072fbf6c89.tar.gz opensim-SC-a9dad994324122555c436a5db14ff4072fbf6c89.tar.bz2 opensim-SC-a9dad994324122555c436a5db14ff4072fbf6c89.tar.xz |
Merge branch 'master' into careminster-presence-refactor
Conflicts:
OpenSim/Region/Framework/Scenes/ScenePresence.cs
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index c45fc0f..49a7766 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -1393,6 +1393,12 @@ namespace OpenSim.Region.Framework.Scenes | |||
1393 | { | 1393 | { |
1394 | m_updateCount = 0; // Kill animation update burst so that the SIT_G.. will stick. | 1394 | m_updateCount = 0; // Kill animation update burst so that the SIT_G.. will stick. |
1395 | Animator.TrySetMovementAnimation("SIT_GROUND_CONSTRAINED"); | 1395 | Animator.TrySetMovementAnimation("SIT_GROUND_CONSTRAINED"); |
1396 | |||
1397 | // TODO: This doesn't prevent the user from walking yet. | ||
1398 | // Setting parent ID would fix this, if we knew what value | ||
1399 | // to use. Or we could add a m_isSitting variable. | ||
1400 | //Animator.TrySetMovementAnimation("SIT_GROUND_CONSTRAINED"); | ||
1401 | SitGround = true; | ||
1396 | } | 1402 | } |
1397 | 1403 | ||
1398 | // In the future, these values might need to go global. | 1404 | // In the future, these values might need to go global. |
@@ -1409,7 +1415,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1409 | 1415 | ||
1410 | bool update_movementflag = false; | 1416 | bool update_movementflag = false; |
1411 | 1417 | ||
1412 | if (m_allowMovement) | 1418 | if (m_allowMovement && !SitGround) |
1413 | { | 1419 | { |
1414 | if (agentData.UseClientAgentPosition) | 1420 | if (agentData.UseClientAgentPosition) |
1415 | { | 1421 | { |