If the root prim has a camera-at or camera-eye setting and a sat upon child prim does not, use the root prim offsets.

This matches behaviour just tested on the Linden Lab grid.
bullet-2.82
Justin Clark-Casey (justincc) 2014-05-22 23:52:28 +01:00
parent 16bf38e1ab
commit 3fbaef9275
1 changed files with 7 additions and 0 deletions

View File

@ -2754,8 +2754,15 @@ namespace OpenSim.Region.Framework.Scenes
part.AddSittingAvatar(this);
cameraAtOffset = part.GetCameraAtOffset();
if (cameraAtOffset == Vector3.Zero)
cameraAtOffset = part.ParentGroup.RootPart.GetCameraAtOffset();
cameraEyeOffset = part.GetCameraEyeOffset();
if (cameraEyeOffset == Vector3.Zero)
cameraEyeOffset = part.ParentGroup.RootPart.GetCameraEyeOffset();
if (cameraEyeOffset != Vector3.Zero || cameraAtOffset != Vector3.Zero)
cameraEyeOffset += part.OffsetPosition;