fix stopMoveToTarget in attachments case ( similar to core fix)
parent
bb5ab05482
commit
6bebb9206c
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue