Get rid of unnecessary ParentID == 0 check on SP.Get_AbsolutePosition since this is handled by the necessary ParentPart check

0.7.4.1
Justin Clark-Casey (justincc) 2012-03-09 02:44:08 +00:00
parent 94e58ff6b9
commit 205c36d3a4
1 changed files with 2 additions and 2 deletions

View File

@ -432,7 +432,7 @@ namespace OpenSim.Region.Framework.Scenes
{
get
{
if (PhysicsActor != null && ParentID == 0)
if (PhysicsActor != null)
{
m_pos = PhysicsActor.Position;
@ -477,7 +477,7 @@ namespace OpenSim.Region.Framework.Scenes
}
}
// Don't update while sitting
// Don't update while sitting. The PhysicsActor above is null whilst sitting.
if (ParentID == 0)
{
m_pos = value;