Make scene object parts created by the test utils unit sized.
parent
4b05e667cb
commit
c644ab6a2c
|
@ -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);
|
||||||
|
|
||||||
|
|
|
@ -475,7 +475,7 @@ namespace OpenSim.Tests.Common.Setup
|
||||||
{
|
{
|
||||||
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>
|
||||||
|
|
Loading…
Reference in New Issue