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)
|
||||
{
|
||||
Vector3 worldPos = part.GetWorldPosition();
|
||||
Vector3 offset = worldPos - AbsolutePosition;
|
||||
Quaternion worldRot = part.GetWorldRotation();
|
||||
|
||||
Vector3 frontTopLeft;
|
||||
|
@ -660,15 +661,15 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
backTopRight = backTopRight * worldRot;
|
||||
|
||||
|
||||
//frontTopLeft += worldPos;
|
||||
//frontTopRight += worldPos;
|
||||
//frontBottomLeft += worldPos;
|
||||
//frontBottomRight += worldPos;
|
||||
frontTopLeft += offset;
|
||||
frontTopRight += offset;
|
||||
frontBottomLeft += offset;
|
||||
frontBottomRight += offset;
|
||||
|
||||
//backBottomLeft += worldPos;
|
||||
//backBottomRight += worldPos;
|
||||
//backTopLeft += worldPos;
|
||||
//backTopRight += worldPos;
|
||||
backBottomLeft += offset;
|
||||
backBottomRight += offset;
|
||||
backTopLeft += offset;
|
||||
backTopRight += offset;
|
||||
|
||||
if (frontTopRight.X > maxX)
|
||||
maxX = frontTopRight.X;
|
||||
|
|
Loading…
Reference in New Issue