More fixing of the boundingbox code.
Still more work needed to get linksets to rezz correctly (not in the ground)trunk
parent
08d4fffdfd
commit
3a72531e4c
|
@ -602,6 +602,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
foreach (SceneObjectPart part in m_parts.Values)
|
foreach (SceneObjectPart part in m_parts.Values)
|
||||||
{
|
{
|
||||||
Vector3 worldPos = part.GetWorldPosition();
|
Vector3 worldPos = part.GetWorldPosition();
|
||||||
|
Vector3 offset = worldPos - AbsolutePosition;
|
||||||
Quaternion worldRot = part.GetWorldRotation();
|
Quaternion worldRot = part.GetWorldRotation();
|
||||||
|
|
||||||
Vector3 frontTopLeft;
|
Vector3 frontTopLeft;
|
||||||
|
@ -660,15 +661,15 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
backTopRight = backTopRight * worldRot;
|
backTopRight = backTopRight * worldRot;
|
||||||
|
|
||||||
|
|
||||||
//frontTopLeft += worldPos;
|
frontTopLeft += offset;
|
||||||
//frontTopRight += worldPos;
|
frontTopRight += offset;
|
||||||
//frontBottomLeft += worldPos;
|
frontBottomLeft += offset;
|
||||||
//frontBottomRight += worldPos;
|
frontBottomRight += offset;
|
||||||
|
|
||||||
//backBottomLeft += worldPos;
|
backBottomLeft += offset;
|
||||||
//backBottomRight += worldPos;
|
backBottomRight += offset;
|
||||||
//backTopLeft += worldPos;
|
backTopLeft += offset;
|
||||||
//backTopRight += worldPos;
|
backTopRight += offset;
|
||||||
|
|
||||||
if (frontTopRight.X > maxX)
|
if (frontTopRight.X > maxX)
|
||||||
maxX = frontTopRight.X;
|
maxX = frontTopRight.X;
|
||||||
|
|
Loading…
Reference in New Issue