mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
Don't re-retrieve sit part in SP.HandleAgentSit() when we already have it (this time with the right code change)
This commit is contained in:
@@ -2866,7 +2866,6 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if (part.SitTargetAvatar == UUID)
|
||||
{
|
||||
Vector3 sitTargetPos = part.SitTargetPosition;
|
||||
@@ -2935,7 +2934,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
// Name, part.AbsolutePosition, m_pos, ParentPosition, part.Name, part.LocalId);
|
||||
}
|
||||
|
||||
ParentPart = m_scene.GetSceneObjectPart(m_requestedSitTargetID);
|
||||
ParentPart = part;
|
||||
ParentID = m_requestedSitTargetID;
|
||||
m_AngularVelocity = Vector3.Zero;
|
||||
Velocity = Vector3.Zero;
|
||||
|
||||
Reference in New Issue
Block a user