diff options
author | UbitUmarov | 2012-04-13 17:50:03 +0100 |
---|---|---|
committer | UbitUmarov | 2012-04-13 17:50:03 +0100 |
commit | 5da77e047a59601cdb6f78f30af4a32a094d861d (patch) | |
tree | c044b6381d1b96f28b6083258ab72980e21a0d23 /OpenSim/Region/Framework | |
parent | make llGetGeometricCenter() work as in current SL. Now this is not real geom ... (diff) | |
download | opensim-SC-5da77e047a59601cdb6f78f30af4a32a094d861d.zip opensim-SC-5da77e047a59601cdb6f78f30af4a32a094d861d.tar.gz opensim-SC-5da77e047a59601cdb6f78f30af4a32a094d861d.tar.bz2 opensim-SC-5da77e047a59601cdb6f78f30af4a32a094d861d.tar.xz |
don't do Animator.UpdateMovementAnimations() in scenepresence RegionHeartbeatEnd if agent is sitting. Also restore Velocity in teleportWithMomentum()
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index b51d41b..c4b75bd 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -753,7 +753,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
753 | if (m_movementAnimationUpdateCounter >= 2) | 753 | if (m_movementAnimationUpdateCounter >= 2) |
754 | { | 754 | { |
755 | m_movementAnimationUpdateCounter = 0; | 755 | m_movementAnimationUpdateCounter = 0; |
756 | if (Animator != null) | 756 | if (Animator != null && ParentID == 0) // don't do it sitting |
757 | { | 757 | { |
758 | Animator.UpdateMovementAnimations(); | 758 | Animator.UpdateMovementAnimations(); |
759 | } | 759 | } |
@@ -1077,11 +1077,12 @@ namespace OpenSim.Region.Framework.Scenes | |||
1077 | public void TeleportWithMomentum(Vector3 pos) | 1077 | public void TeleportWithMomentum(Vector3 pos) |
1078 | { | 1078 | { |
1079 | bool isFlying = Flying; | 1079 | bool isFlying = Flying; |
1080 | Vector3 vel = Velocity; | ||
1080 | RemoveFromPhysicalScene(); | 1081 | RemoveFromPhysicalScene(); |
1081 | CheckLandingPoint(ref pos); | 1082 | CheckLandingPoint(ref pos); |
1082 | AbsolutePosition = pos; | 1083 | AbsolutePosition = pos; |
1083 | AddToPhysicalScene(isFlying); | 1084 | AddToPhysicalScene(isFlying); |
1084 | 1085 | Velocity = vel; | |
1085 | SendTerseUpdateToAllClients(); | 1086 | SendTerseUpdateToAllClients(); |
1086 | } | 1087 | } |
1087 | 1088 | ||