fix avatar rotation when sitting on a linked part
Need to take into account rotation of linked prim now that we are always specifying sits wrt the root primlink-sitting
parent
8217b52d3a
commit
65304260af
|
@ -2591,7 +2591,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
//Quaternion result = (sitTargetOrient * vq) * nq;
|
//Quaternion result = (sitTargetOrient * vq) * nq;
|
||||||
|
|
||||||
m_pos = sitTargetPos + SIT_TARGET_ADJUSTMENT + part.OffsetPosition;
|
m_pos = sitTargetPos + SIT_TARGET_ADJUSTMENT + part.OffsetPosition;
|
||||||
Rotation = sitTargetOrient;
|
Rotation = part.RotationOffset * sitTargetOrient;
|
||||||
ParentPosition = part.AbsolutePosition;
|
ParentPosition = part.AbsolutePosition;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue