mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
Get rid of unnecessary ParentID == 0 check on SP.Get_AbsolutePosition since this is handled by the necessary ParentPart check
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user