fix stopMoveToTarget in attachments case ( similar to core fix)

avinationmerge
UbitUmarov 2014-11-19 20:11:16 +00:00
parent bb5ab05482
commit 6bebb9206c
1 changed files with 15 additions and 4 deletions

View File

@ -2467,6 +2467,16 @@ namespace OpenSim.Region.Framework.Scenes
} }
public void stopMoveToTarget() public void stopMoveToTarget()
{
if (IsAttachment)
{
ScenePresence avatar = m_scene.GetScenePresence(AttachedAvatar);
if (avatar != null)
{
avatar.ResetMoveToTarget();
}
}
else
{ {
PhysicsActor pa = RootPart.PhysActor; PhysicsActor pa = RootPart.PhysActor;
@ -2475,6 +2485,7 @@ namespace OpenSim.Region.Framework.Scenes
RootPart.ScheduleTerseUpdate(); // send a stop information RootPart.ScheduleTerseUpdate(); // send a stop information
} }
}
public void rotLookAt(Quaternion target, float strength, float damping) public void rotLookAt(Quaternion target, float strength, float damping)
{ {