cancel MoveToTarget (viewer 'go here") on sits
parent
a504704071
commit
d40cdd2649
|
@ -2140,12 +2140,21 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
|
||||
if (canSit)
|
||||
{
|
||||
|
||||
if (PhysicsActor != null)
|
||||
{
|
||||
// We can remove the physicsActor until they stand up.
|
||||
RemoveFromPhysicalScene();
|
||||
}
|
||||
|
||||
if (MovingToTarget)
|
||||
{
|
||||
ResetMoveToTarget();
|
||||
m_forceToApply = null;
|
||||
}
|
||||
|
||||
Velocity = Vector3.Zero;
|
||||
|
||||
part.AddSittingAvatar(UUID);
|
||||
|
||||
cameraAtOffset = part.GetCameraAtOffset();
|
||||
|
@ -2230,6 +2239,7 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
return true;
|
||||
}
|
||||
|
||||
|
||||
// not doing autopilot
|
||||
m_requestedSitTargetID = 0;
|
||||
|
||||
|
@ -2259,8 +2269,19 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
|
||||
// m_log.InfoFormat("physsit {0} {1}", offset.ToString(),Orientation.ToString());
|
||||
|
||||
RemoveFromPhysicalScene();
|
||||
|
||||
if (MovingToTarget)
|
||||
{
|
||||
ResetMoveToTarget();
|
||||
m_forceToApply = null;
|
||||
}
|
||||
|
||||
Velocity = Vector3.Zero;
|
||||
|
||||
part.AddSittingAvatar(UUID);
|
||||
|
||||
|
||||
Vector3 cameraAtOffset = part.GetCameraAtOffset();
|
||||
Vector3 cameraEyeOffset = part.GetCameraEyeOffset();
|
||||
bool forceMouselook = part.GetForceMouselook();
|
||||
|
@ -2269,8 +2290,6 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
part.UUID, offset, Orientation, false, cameraAtOffset, cameraEyeOffset, forceMouselook);
|
||||
|
||||
// not using autopilot
|
||||
Velocity = Vector3.Zero;
|
||||
RemoveFromPhysicalScene();
|
||||
|
||||
Rotation = Orientation;
|
||||
m_pos = offset;
|
||||
|
@ -2317,6 +2336,7 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
return;
|
||||
}
|
||||
|
||||
|
||||
if (part.SitTargetAvatar == UUID)
|
||||
{
|
||||
Vector3 sitTargetPos = part.SitTargetPosition;
|
||||
|
|
Loading…
Reference in New Issue