Revert "Still send CameraEyeOffset in UDP SendSitReponse even if at offset is Vector3.Zero"

This reverts commit 9bdd3dc7de.
master-beforevarregion
Justin Clark-Casey (justincc) 2013-11-23 02:29:14 +00:00
parent eb172be541
commit a68d1fad73
1 changed files with 5 additions and 2 deletions

View File

@ -2635,8 +2635,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP
{ {
AvatarSitResponsePacket avatarSitResponse = new AvatarSitResponsePacket(); AvatarSitResponsePacket avatarSitResponse = new AvatarSitResponsePacket();
avatarSitResponse.SitObject.ID = TargetID; avatarSitResponse.SitObject.ID = TargetID;
avatarSitResponse.SitTransform.CameraAtOffset = CameraAtOffset; if (CameraAtOffset != Vector3.Zero)
avatarSitResponse.SitTransform.CameraEyeOffset = CameraEyeOffset; {
avatarSitResponse.SitTransform.CameraAtOffset = CameraAtOffset;
avatarSitResponse.SitTransform.CameraEyeOffset = CameraEyeOffset;
}
avatarSitResponse.SitTransform.ForceMouselook = ForceMouseLook; avatarSitResponse.SitTransform.ForceMouselook = ForceMouseLook;
avatarSitResponse.SitTransform.AutoPilot = autopilot; avatarSitResponse.SitTransform.AutoPilot = autopilot;
avatarSitResponse.SitTransform.SitPosition = OffsetPos; avatarSitResponse.SitTransform.SitPosition = OffsetPos;