diff options
Merge branch 'master' into careminster-presence-refactor
Conflicts:
OpenSim/Region/Framework/Scenes/ScenePresence.cs
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs')
-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 | { |