mirror of
https://github.com/opensim/opensim.git
synced 2026-07-13 19:14:51 +08:00
Merge branch 'master' of ssh://melanie@3dhosting.de/var/git/careminster into careminster
This commit is contained in:
@@ -2280,20 +2280,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
}
|
||||
else
|
||||
{
|
||||
if (part.IsRoot)
|
||||
{
|
||||
return new LSL_Vector(part.AttachedPos.X,
|
||||
part.AttachedPos.Y,
|
||||
part.AttachedPos.Z);
|
||||
}
|
||||
if (part.ParentGroup.IsAttachment)
|
||||
pos = part.AttachedPos;
|
||||
else
|
||||
{
|
||||
pos = part.AbsolutePosition;
|
||||
}
|
||||
}
|
||||
|
||||
// m_log.DebugFormat("[LSL API]: Returning {0} in GetPartLocalPos()", pos);
|
||||
|
||||
return new LSL_Vector(pos.X, pos.Y, pos.Z);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user