refactor: Remove identical part.ParentGroup.AddAvatar(UUID); calls which occur no matter which branch of the conditional is executed

master-beforevarregion
Justin Clark-Casey (justincc) 2014-01-27 23:17:09 +00:00
parent e2fbc88d98
commit 1b86239f79
1 changed files with 1 additions and 2 deletions

View File

@ -2909,7 +2909,6 @@ namespace OpenSim.Region.Framework.Scenes
Rotation = newRot;
// ParentPosition = part.AbsolutePosition;
part.ParentGroup.AddAvatar(UUID);
}
else
{
@ -2918,13 +2917,13 @@ namespace OpenSim.Region.Framework.Scenes
m_pos -= part.GroupPosition;
// ParentPosition = part.AbsolutePosition;
part.ParentGroup.AddAvatar(UUID);
// m_log.DebugFormat(
// "[SCENE PRESENCE]: Sitting {0} at position {1} ({2} + {3}) on part {4} {5} without sit target",
// Name, part.AbsolutePosition, m_pos, ParentPosition, part.Name, part.LocalId);
}
part.ParentGroup.AddAvatar(UUID);
ParentPart = m_scene.GetSceneObjectPart(m_requestedSitTargetID);
ParentID = m_requestedSitTargetID;
m_AngularVelocity = Vector3.Zero;