fix for mantis #2 from Justin Casey (IBM)
parent
ee8512ee20
commit
7b09800d5b
|
@ -1580,6 +1580,11 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
List<ScenePresence> avatars = GetScenePresences();
|
||||
for (int i = 0; i < avatars.Count; i++)
|
||||
{
|
||||
if (avatars[i].ParentID == LocalId)
|
||||
{
|
||||
avatars[i].StandUp();
|
||||
}
|
||||
|
||||
avatars[i].ControllingClient.SendKillObject(m_regionHandle, part.LocalID);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -526,7 +526,6 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
if ((flags & (uint) MainAvatar.ControlFlags.AGENT_CONTROL_STAND_UP) != 0)
|
||||
{
|
||||
StandUp();
|
||||
UpdateMovementAnimations(true);
|
||||
}
|
||||
|
||||
if (PhysicsActor == null)
|
||||
|
@ -593,7 +592,11 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
|
||||
}
|
||||
|
||||
protected void StandUp()
|
||||
/// <summary>
|
||||
/// Perform the logic necessary to stand the client up. This method also executes
|
||||
/// the stand animation.
|
||||
/// </summary>
|
||||
public void StandUp()
|
||||
{
|
||||
if (m_parentID != 0)
|
||||
{
|
||||
|
@ -607,6 +610,8 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
m_parentID = 0;
|
||||
SendFullUpdateToAllClients();
|
||||
}
|
||||
|
||||
UpdateMovementAnimations(true);
|
||||
}
|
||||
|
||||
private void SendSitResponse(IClientAPI remoteClient, LLUUID targetID, LLVector3 offset)
|
||||
|
@ -651,7 +656,6 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
if (m_parentID != 0)
|
||||
{
|
||||
StandUp();
|
||||
UpdateMovementAnimations(true);
|
||||
}
|
||||
|
||||
SceneObjectPart part = m_scene.GetSceneObjectPart(targetID);
|
||||
|
|
Loading…
Reference in New Issue