Make scene object parts created by the test utils unit sized.

bulletsim
Justin Clark-Casey (justincc) 2011-04-14 20:21:44 +01:00
parent 4b05e667cb
commit c644ab6a2c
2 changed files with 3 additions and 5 deletions

View File

@ -89,11 +89,9 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess.Tests
// Create asset // Create asset
SceneObjectGroup object1 = SceneSetupHelpers.CreateSceneObject(1, m_userId, "Object1", 0x20); SceneObjectGroup object1 = SceneSetupHelpers.CreateSceneObject(1, m_userId, "Object1", 0x20);
object1.AbsolutePosition = new Vector3(15, 30, 45); object1.AbsolutePosition = new Vector3(15, 30, 45);
object1.Parts[0].Scale = new Vector3(1, 1, 1);
SceneObjectGroup object2 = SceneSetupHelpers.CreateSceneObject(1, m_userId, "Object2", 0x40); SceneObjectGroup object2 = SceneSetupHelpers.CreateSceneObject(1, m_userId, "Object2", 0x40);
object2.AbsolutePosition = new Vector3(25, 50, 75); object2.AbsolutePosition = new Vector3(25, 50, 75);
object2.Parts[0].Scale = new Vector3(1, 1, 1);
CoalescedSceneObjects coa = new CoalescedSceneObjects(m_userId, object1, object2); CoalescedSceneObjects coa = new CoalescedSceneObjects(m_userId, object1, object2);

View File

@ -472,10 +472,10 @@ namespace OpenSim.Tests.Common.Setup
/// <param name="ownerId"></param> /// <param name="ownerId"></param>
/// <returns></returns> /// <returns></returns>
public static SceneObjectPart CreateSceneObjectPart(string name, UUID id, UUID ownerId) public static SceneObjectPart CreateSceneObjectPart(string name, UUID id, UUID ownerId)
{ {
return new SceneObjectPart( return new SceneObjectPart(
ownerId, PrimitiveBaseShape.Default, Vector3.Zero, Quaternion.Identity, Vector3.Zero) ownerId, PrimitiveBaseShape.Default, Vector3.Zero, Quaternion.Identity, Vector3.Zero)
{ Name = name, UUID = id }; { Name = name, UUID = id, Scale = new Vector3(1, 1, 1) };
} }
/// <summary> /// <summary>