Extend DuplicateObject() test to check flags on the duplicated object
parent
85fc2dfe3c
commit
7203feb83c
|
@ -65,16 +65,18 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||||
|
|
||||||
scene.AddNewSceneObject(so, false);
|
scene.AddNewSceneObject(so, false);
|
||||||
|
|
||||||
uint part1LocalId = part1.LocalId;
|
SceneObjectGroup dupeSo
|
||||||
|
|
||||||
SceneObjectGroup duplicatedSo
|
|
||||||
= scene.SceneGraph.DuplicateObject(
|
= scene.SceneGraph.DuplicateObject(
|
||||||
part1LocalId, new Vector3(10, 0, 0), 0, ownerId, UUID.Zero, Quaternion.Identity);
|
part1.LocalId, new Vector3(10, 0, 0), 0, ownerId, UUID.Zero, Quaternion.Identity);
|
||||||
|
Assert.That(dupeSo.Children.Count, Is.EqualTo(2));
|
||||||
|
|
||||||
Assert.That(duplicatedSo.Children.Count, Is.EqualTo(2));
|
SceneObjectPart dupePart1 = dupeSo.GetLinkNumPart(1);
|
||||||
Assert.That(duplicatedSo.RootPart.LocalId, Is.Not.EqualTo(part1.LocalId));
|
SceneObjectPart dupePart2 = dupeSo.GetLinkNumPart(2);
|
||||||
|
Assert.That(dupePart1.LocalId, Is.Not.EqualTo(part1.LocalId));
|
||||||
|
Assert.That(dupePart2.LocalId, Is.Not.EqualTo(part2.LocalId));
|
||||||
|
|
||||||
//SceneObjectPart retrievedPart = scene.GetSceneObjectPart(objUuid);
|
Assert.That(dupePart1.Flags, Is.EqualTo(part1.Flags));
|
||||||
|
Assert.That(dupePart2.Flags, Is.EqualTo(part2.Flags));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue