From 52a3cc39e9d28fdf7230575d95afa3fd17d51a23 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Mon, 16 Nov 2015 22:41:36 +0000 Subject: work around some 'tests' errors: fix math --- OpenSim/Region/Framework/Scenes/Tests/SceneObjectSpatialTests.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/OpenSim/Region/Framework/Scenes/Tests/SceneObjectSpatialTests.cs b/OpenSim/Region/Framework/Scenes/Tests/SceneObjectSpatialTests.cs index e00defd..ec58a5a 100644 --- a/OpenSim/Region/Framework/Scenes/Tests/SceneObjectSpatialTests.cs +++ b/OpenSim/Region/Framework/Scenes/Tests/SceneObjectSpatialTests.cs @@ -137,9 +137,8 @@ namespace OpenSim.Region.Framework.Scenes.Tests Vector3 childPosition = new Vector3(rootPartPosition + rotatedChildOffsetPosition); SceneObjectPart childPart = so.Parts[1]; - - // FIXME: Should be childPosition after rotation? - Assert.That(childPart.AbsolutePosition, Is.EqualTo(rootPartPosition + childOffsetPosition)); + + Assert.That(childPart.AbsolutePosition, Is.EqualTo(childPosition)); Assert.That(childPart.GroupPosition, Is.EqualTo(rootPartPosition)); Assert.That(childPart.GetWorldPosition(), Is.EqualTo(childPosition)); -- cgit v1.1