remove avn hack on sitted avatars positions
parent
79aea3e588
commit
a5fcc0c0c0
|
@ -5132,22 +5132,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
|
|
||||||
position = presence.OffsetPosition;
|
position = presence.OffsetPosition;
|
||||||
rotation = presence.Rotation;
|
rotation = presence.Rotation;
|
||||||
|
angularVelocity = presence.AngularVelocity;
|
||||||
if (presence.ParentID != 0)
|
rotation = presence.Rotation;
|
||||||
{
|
|
||||||
SceneObjectPart part = m_scene.GetSceneObjectPart(presence.ParentID);
|
|
||||||
if (part != null && part != part.ParentGroup.RootPart)
|
|
||||||
{
|
|
||||||
position = part.OffsetPosition + presence.OffsetPosition * part.RotationOffset;
|
|
||||||
rotation = part.RotationOffset * presence.Rotation;
|
|
||||||
}
|
|
||||||
angularVelocity = Vector3.Zero;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
angularVelocity = presence.AngularVelocity;
|
|
||||||
rotation = presence.Rotation;
|
|
||||||
}
|
|
||||||
|
|
||||||
attachPoint = 0;
|
attachPoint = 0;
|
||||||
// m_log.DebugFormat(
|
// m_log.DebugFormat(
|
||||||
|
@ -5267,16 +5253,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
Quaternion rotation = data.Rotation;
|
Quaternion rotation = data.Rotation;
|
||||||
uint parentID = data.ParentID;
|
uint parentID = data.ParentID;
|
||||||
|
|
||||||
if (parentID != 0)
|
|
||||||
{
|
|
||||||
SceneObjectPart part = m_scene.GetSceneObjectPart(parentID);
|
|
||||||
if (part != null && part != part.ParentGroup.RootPart)
|
|
||||||
{
|
|
||||||
offsetPosition = part.OffsetPosition + data.OffsetPosition * part.RotationOffset;
|
|
||||||
rotation = part.RotationOffset * data.Rotation;
|
|
||||||
parentID = part.ParentGroup.RootPart.LocalId;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// m_log.DebugFormat(
|
// m_log.DebugFormat(
|
||||||
// "[LLCLIENTVIEW]: Sending full update to {0} with position {1} in {2}", Name, data.OffsetPosition, m_scene.Name);
|
// "[LLCLIENTVIEW]: Sending full update to {0} with position {1} in {2}", Name, data.OffsetPosition, m_scene.Name);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue