diff options
author | UbitUmarov | 2015-11-16 22:41:36 +0000 |
---|---|---|
committer | UbitUmarov | 2015-11-16 22:41:36 +0000 |
commit | 52a3cc39e9d28fdf7230575d95afa3fd17d51a23 (patch) | |
tree | c2ac11df0534ad9ceb152c0f7acd1d70f2f860a9 /OpenSim/Region/Framework/Scenes | |
parent | work around some 'tests' error: internal GroupResize() doesn't heave Undo (diff) | |
download | opensim-SC-52a3cc39e9d28fdf7230575d95afa3fd17d51a23.zip opensim-SC-52a3cc39e9d28fdf7230575d95afa3fd17d51a23.tar.gz opensim-SC-52a3cc39e9d28fdf7230575d95afa3fd17d51a23.tar.bz2 opensim-SC-52a3cc39e9d28fdf7230575d95afa3fd17d51a23.tar.xz |
work around some 'tests' errors: fix math
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Tests/SceneObjectSpatialTests.cs | 5 |
1 files 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 | |||
137 | Vector3 childPosition = new Vector3(rootPartPosition + rotatedChildOffsetPosition); | 137 | Vector3 childPosition = new Vector3(rootPartPosition + rotatedChildOffsetPosition); |
138 | 138 | ||
139 | SceneObjectPart childPart = so.Parts[1]; | 139 | SceneObjectPart childPart = so.Parts[1]; |
140 | 140 | ||
141 | // FIXME: Should be childPosition after rotation? | 141 | Assert.That(childPart.AbsolutePosition, Is.EqualTo(childPosition)); |
142 | Assert.That(childPart.AbsolutePosition, Is.EqualTo(rootPartPosition + childOffsetPosition)); | ||
143 | 142 | ||
144 | Assert.That(childPart.GroupPosition, Is.EqualTo(rootPartPosition)); | 143 | Assert.That(childPart.GroupPosition, Is.EqualTo(rootPartPosition)); |
145 | Assert.That(childPart.GetWorldPosition(), Is.EqualTo(childPosition)); | 144 | Assert.That(childPart.GetWorldPosition(), Is.EqualTo(childPosition)); |