Revert "Fix issue where sitting on non-root linked prims would send camera to wrong position in third-person and mouselook"

Reverting to place on separate branch

This reverts commit ff4e7de776.
varregion
Justin Clark-Casey (justincc) 2013-11-23 02:31:39 +00:00
parent 1999b218fd
commit 60e049ea39
2 changed files with 3 additions and 14 deletions

View File

@ -5218,13 +5218,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
update.NameValue = Utils.StringToBytes("FirstName STRING RW SV " + data.Firstname + "\nLastName STRING RW SV " + update.NameValue = Utils.StringToBytes("FirstName STRING RW SV " + data.Firstname + "\nLastName STRING RW SV " +
data.Lastname + "\nTitle STRING RW SV " + data.Grouptitle); data.Lastname + "\nTitle STRING RW SV " + data.Grouptitle);
update.ObjectData = objectData; update.ObjectData = objectData;
update.ParentID = data.ParentID;
SceneObjectPart parentPart = data.ParentPart;
if (parentPart != null)
update.ParentID = parentPart.ParentGroup.LocalId;
else
update.ParentID = 0;
update.PathCurve = 16; update.PathCurve = 16;
update.PathScaleX = 100; update.PathScaleX = 100;
update.PathScaleY = 100; update.PathScaleY = 100;

View File

@ -2312,10 +2312,8 @@ namespace OpenSim.Region.Framework.Scenes
cameraEyeOffset = part.GetCameraEyeOffset(); cameraEyeOffset = part.GetCameraEyeOffset();
forceMouselook = part.GetForceMouselook(); forceMouselook = part.GetForceMouselook();
// An viewer expects to specify sit positions as offsets to the root prim, even if a child prim is
// being sat upon.
ControllingClient.SendSitResponse( ControllingClient.SendSitResponse(
part.ParentGroup.UUID, offset, sitOrientation, false, cameraAtOffset, cameraEyeOffset, forceMouselook); part.UUID, offset, sitOrientation, false, cameraAtOffset, cameraEyeOffset, forceMouselook);
m_requestedSitTargetUUID = part.UUID; m_requestedSitTargetUUID = part.UUID;
@ -2594,10 +2592,7 @@ namespace OpenSim.Region.Framework.Scenes
} }
else else
{ {
// An viewer expects to specify sit positions as offsets to the root prim, even if a child prim is m_pos -= part.AbsolutePosition;
// being sat upon.
m_pos -= part.GroupPosition;
ParentPosition = part.AbsolutePosition; ParentPosition = part.AbsolutePosition;
// m_log.DebugFormat( // m_log.DebugFormat(