Don't re-retrieve sit part in SP.HandleAgentSit() when we already have it (this time with the right code change)

0.8.0.3
Justin Clark-Casey (justincc) 2014-04-05 02:16:14 +01:00
parent 86a2cd915c
commit cacbb5c165
1 changed files with 1 additions and 2 deletions

View File

@ -2866,7 +2866,6 @@ namespace OpenSim.Region.Framework.Scenes
return; return;
} }
if (part.SitTargetAvatar == UUID) if (part.SitTargetAvatar == UUID)
{ {
Vector3 sitTargetPos = part.SitTargetPosition; Vector3 sitTargetPos = part.SitTargetPosition;
@ -2935,7 +2934,7 @@ namespace OpenSim.Region.Framework.Scenes
// Name, part.AbsolutePosition, m_pos, ParentPosition, part.Name, part.LocalId); // Name, part.AbsolutePosition, m_pos, ParentPosition, part.Name, part.LocalId);
} }
ParentPart = m_scene.GetSceneObjectPart(m_requestedSitTargetID); ParentPart = part;
ParentID = m_requestedSitTargetID; ParentID = m_requestedSitTargetID;
m_AngularVelocity = Vector3.Zero; m_AngularVelocity = Vector3.Zero;
Velocity = Vector3.Zero; Velocity = Vector3.Zero;