30 using System.Reflection;
32 using NUnit.Framework;
34 using OpenSim.Framework;
35 using OpenSim.Region.Framework.Scenes;
36 using OpenSim.Tests.Common;
38 namespace OpenSim.
Region.Framework.Scenes.Tests
46 TestHelpers.InMethod();
51 UUID ownerId =
new UUID(
"00000000-0000-0000-0000-000000000010");
52 string part1Name =
"part1";
53 UUID part1Id =
new UUID(
"00000000-0000-0000-0000-000000000001");
54 string part2Name =
"part2";
55 UUID part2Id =
new UUID(
"00000000-0000-0000-0000-000000000002");
59 { Name = part1Name, UUID = part1Id };
63 { Name = part2Name, UUID = part2Id };
66 scene.AddNewSceneObject(so,
false);
69 = scene.SceneGraph.DuplicateObject(
70 part1.LocalId,
new Vector3(10, 0, 0), 0, ownerId, UUID.Zero, Quaternion.Identity);
71 Assert.That(dupeSo.Parts.Length, Is.EqualTo(2));
75 Assert.That(dupePart1.LocalId, Is.Not.EqualTo(part1.LocalId));
76 Assert.That(dupePart2.LocalId, Is.Not.EqualTo(part2.LocalId));
78 Assert.That(dupePart1.Flags, Is.EqualTo(part1.Flags));
79 Assert.That(dupePart2.Flags, Is.EqualTo(part2.Flags));
static PrimitiveBaseShape Default
A scene object group is conceptually an object in the scene. The object is constituted of SceneObject...
void TestDuplicateObject()
Helpers for setting up scenes.