mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
don't do Animator.UpdateMovementAnimations() in scenepresence RegionHeartbeatEnd if agent is sitting. Also restore Velocity in teleportWithMomentum()
This commit is contained in:
@@ -753,7 +753,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
if (m_movementAnimationUpdateCounter >= 2)
|
||||
{
|
||||
m_movementAnimationUpdateCounter = 0;
|
||||
if (Animator != null)
|
||||
if (Animator != null && ParentID == 0) // don't do it sitting
|
||||
{
|
||||
Animator.UpdateMovementAnimations();
|
||||
}
|
||||
@@ -1077,11 +1077,12 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
public void TeleportWithMomentum(Vector3 pos)
|
||||
{
|
||||
bool isFlying = Flying;
|
||||
Vector3 vel = Velocity;
|
||||
RemoveFromPhysicalScene();
|
||||
CheckLandingPoint(ref pos);
|
||||
AbsolutePosition = pos;
|
||||
AddToPhysicalScene(isFlying);
|
||||
|
||||
Velocity = vel;
|
||||
SendTerseUpdateToAllClients();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user