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
parent
16bf38e1ab
commit
3fbaef9275
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue