Fix the StandUp position to calculate as if we're still using the child prim id.

avinationmerge
Tom Grimshaw 2010-06-20 15:57:01 -07:00
parent fc715a092c
commit 9d251b1dc5
1 changed files with 1 additions and 1 deletions

View File

@ -1822,7 +1822,7 @@ namespace OpenSim.Region.Framework.Scenes
//CW: If the part isn't null then we can set the current position //CW: If the part isn't null then we can set the current position
if (part != null) if (part != null)
{ {
Vector3 avWorldStandUp = avStandUp + part.GetWorldPosition() + (m_pos * partRot); // + av sit offset! Vector3 avWorldStandUp = avStandUp + part.GetWorldPosition() + ((m_pos - part.OffsetPosition) * partRot); // + av sit offset!
AbsolutePosition = avWorldStandUp; //KF: Fix stand up. AbsolutePosition = avWorldStandUp; //KF: Fix stand up.
part.IsOccupied = false; part.IsOccupied = false;
part.ParentGroup.DeleteAvatar(ControllingClient.AgentId); part.ParentGroup.DeleteAvatar(ControllingClient.AgentId);