diff options
author | Melanie | 2009-12-30 20:26:22 +0000 |
---|---|---|
committer | Melanie | 2009-12-30 20:26:22 +0000 |
commit | 5e103f2b2eb51c35b435f6850fc088f1f905d9dd (patch) | |
tree | 9639026f9ee63810209b891912dac81ee36fd69d /OpenSim | |
parent | Merge branch 'master' into careminster (diff) | |
download | opensim-SC_OLD-5e103f2b2eb51c35b435f6850fc088f1f905d9dd.zip opensim-SC_OLD-5e103f2b2eb51c35b435f6850fc088f1f905d9dd.tar.gz opensim-SC_OLD-5e103f2b2eb51c35b435f6850fc088f1f905d9dd.tar.bz2 opensim-SC_OLD-5e103f2b2eb51c35b435f6850fc088f1f905d9dd.tar.xz |
Revert "Merge branch 'master' into careminster"
This reverts commit d49d44923d1be38f6fff12706b156562c6060566.
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Animation/ScenePresenceAnimator.cs | 5 | ||||
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 18 |
2 files changed, 1 insertions, 22 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Animation/ScenePresenceAnimator.cs b/OpenSim/Region/Framework/Scenes/Animation/ScenePresenceAnimator.cs index 6c64484..e98f0e7 100644 --- a/OpenSim/Region/Framework/Scenes/Animation/ScenePresenceAnimator.cs +++ b/OpenSim/Region/Framework/Scenes/Animation/ScenePresenceAnimator.cs | |||
@@ -151,10 +151,7 @@ namespace OpenSim.Region.Framework.Scenes.Animation | |||
151 | const float PREJUMP_DELAY = 0.25f; | 151 | const float PREJUMP_DELAY = 0.25f; |
152 | 152 | ||
153 | #region Inputs | 153 | #region Inputs |
154 | if (m_scenePresence.SitGround) | 154 | |
155 | { | ||
156 | return "SIT_GROUND_CONSTRAINED"; | ||
157 | } | ||
158 | AgentManager.ControlFlags controlFlags = (AgentManager.ControlFlags)m_scenePresence.AgentControlFlags; | 155 | AgentManager.ControlFlags controlFlags = (AgentManager.ControlFlags)m_scenePresence.AgentControlFlags; |
159 | PhysicsActor actor = m_scenePresence.PhysicsActor; | 156 | PhysicsActor actor = m_scenePresence.PhysicsActor; |
160 | 157 | ||
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index ee76cb6..c3bc96a 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -129,7 +129,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
129 | private Vector3? m_forceToApply; | 129 | private Vector3? m_forceToApply; |
130 | private uint m_requestedSitTargetID; | 130 | private uint m_requestedSitTargetID; |
131 | private UUID m_requestedSitTargetUUID; | 131 | private UUID m_requestedSitTargetUUID; |
132 | public bool SitGround = false; | ||
133 | 132 | ||
134 | private SendCourseLocationsMethod m_sendCourseLocationsMethod; | 133 | private SendCourseLocationsMethod m_sendCourseLocationsMethod; |
135 | 134 | ||
@@ -1300,17 +1299,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
1300 | 1299 | ||
1301 | if ((flags & AgentManager.ControlFlags.AGENT_CONTROL_SIT_ON_GROUND) != 0) | 1300 | if ((flags & AgentManager.ControlFlags.AGENT_CONTROL_SIT_ON_GROUND) != 0) |
1302 | { | 1301 | { |
1303 | <<<<<<< HEAD:OpenSim/Region/Framework/Scenes/ScenePresence.cs | ||
1304 | m_updateCount = 0; // Kill animation update burst so that the SIT_G.. will stick. | 1302 | m_updateCount = 0; // Kill animation update burst so that the SIT_G.. will stick. |
1305 | Animator.TrySetMovementAnimation("SIT_GROUND_CONSTRAINED"); | 1303 | Animator.TrySetMovementAnimation("SIT_GROUND_CONSTRAINED"); |
1306 | ======= | ||
1307 | // TODO: This doesn't prevent the user from walking yet. | ||
1308 | // Setting parent ID would fix this, if we knew what value | ||
1309 | // to use. Or we could add a m_isSitting variable. | ||
1310 | //Animator.TrySetMovementAnimation("SIT_GROUND_CONSTRAINED"); | ||
1311 | SitGround = true; | ||
1312 | |||
1313 | >>>>>>> master:OpenSim/Region/Framework/Scenes/ScenePresence.cs | ||
1314 | } | 1304 | } |
1315 | 1305 | ||
1316 | // In the future, these values might need to go global. | 1306 | // In the future, these values might need to go global. |
@@ -1550,11 +1540,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1550 | } | 1540 | } |
1551 | } | 1541 | } |
1552 | 1542 | ||
1553 | <<<<<<< HEAD:OpenSim/Region/Framework/Scenes/ScenePresence.cs | ||
1554 | if (update_movementflag) | 1543 | if (update_movementflag) |
1555 | ======= | ||
1556 | if (update_movementflag && ((flags & AgentManager.ControlFlags.AGENT_CONTROL_SIT_ON_GROUND) == 0) && (m_parentID == 0) && !SitGround) | ||
1557 | >>>>>>> master:OpenSim/Region/Framework/Scenes/ScenePresence.cs | ||
1558 | Animator.UpdateMovementAnimations(); | 1544 | Animator.UpdateMovementAnimations(); |
1559 | 1545 | ||
1560 | m_scene.EventManager.TriggerOnClientMovement(this); | 1546 | m_scene.EventManager.TriggerOnClientMovement(this); |
@@ -1665,12 +1651,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
1665 | /// </summary> | 1651 | /// </summary> |
1666 | public void StandUp() | 1652 | public void StandUp() |
1667 | { | 1653 | { |
1668 | if (SitGround) | ||
1669 | SitGround = false; | ||
1670 | |||
1671 | if (m_parentID != 0) | 1654 | if (m_parentID != 0) |
1672 | { | 1655 | { |
1673 | m_log.Debug("StandupCode Executed"); | ||
1674 | SceneObjectPart part = m_scene.GetSceneObjectPart(m_parentID); | 1656 | SceneObjectPart part = m_scene.GetSceneObjectPart(m_parentID); |
1675 | if (part != null) | 1657 | if (part != null) |
1676 | { | 1658 | { |