diff options
author | Oren Hurvitz | 2013-10-24 11:18:15 +0300 |
---|---|---|
committer | Oren Hurvitz | 2014-03-24 11:44:48 +0100 |
commit | 62b3bdf0fc7a64dd9b845eb27fa8e1a2a1866c2b (patch) | |
tree | 23d4465a654833f5e993ee260159024d908d43d3 /OpenSim/Region/Framework/Scenes/Tests | |
parent | BulletSim: fix problem where axis constraints were also constraining (diff) | |
download | opensim-SC_OLD-62b3bdf0fc7a64dd9b845eb27fa8e1a2a1866c2b.zip opensim-SC_OLD-62b3bdf0fc7a64dd9b845eb27fa8e1a2a1866c2b.tar.gz opensim-SC_OLD-62b3bdf0fc7a64dd9b845eb27fa8e1a2a1866c2b.tar.bz2 opensim-SC_OLD-62b3bdf0fc7a64dd9b845eb27fa8e1a2a1866c2b.tar.xz |
When linking two groups, and then deleting the combined group: delete *all* of the combined group's prims, including those that came from the second subgroup
This fixes http://opensimulator.org/mantis/view.php?id=6175
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Tests')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Tests/SceneObjectLinkingTests.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Tests/SceneObjectLinkingTests.cs b/OpenSim/Region/Framework/Scenes/Tests/SceneObjectLinkingTests.cs index 9378e20..fa8277c 100644 --- a/OpenSim/Region/Framework/Scenes/Tests/SceneObjectLinkingTests.cs +++ b/OpenSim/Region/Framework/Scenes/Tests/SceneObjectLinkingTests.cs | |||
@@ -143,7 +143,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests | |||
143 | 143 | ||
144 | Assert.That(grp1.Parts.Length, Is.EqualTo(1), "Group 1 still contained part2 after delink."); | 144 | Assert.That(grp1.Parts.Length, Is.EqualTo(1), "Group 1 still contained part2 after delink."); |
145 | Assert.That(part2.AbsolutePosition == Vector3.Zero, "The absolute position should be zero"); | 145 | Assert.That(part2.AbsolutePosition == Vector3.Zero, "The absolute position should be zero"); |
146 | Assert.That(grp3.HasGroupChangedDueToDelink, Is.True); | 146 | Assert.That(grp3.GroupContainsForeignPrims, Is.True); |
147 | } | 147 | } |
148 | 148 | ||
149 | [Test] | 149 | [Test] |
@@ -349,10 +349,10 @@ namespace OpenSim.Region.Framework.Scenes.Tests | |||
349 | 349 | ||
350 | // These changes should occur immediately without waiting for a backup pass | 350 | // These changes should occur immediately without waiting for a backup pass |
351 | SceneObjectGroup groupToDelete = sog.DelinkFromGroup(linkPart, false); | 351 | SceneObjectGroup groupToDelete = sog.DelinkFromGroup(linkPart, false); |
352 | 352 | ||
353 | Assert.That(groupToDelete.HasGroupChangedDueToDelink, Is.True); | 353 | Assert.That(groupToDelete.GroupContainsForeignPrims, Is.True); |
354 | scene.DeleteSceneObject(groupToDelete, false); | 354 | scene.DeleteSceneObject(groupToDelete, false); |
355 | Assert.That(groupToDelete.HasGroupChangedDueToDelink, Is.False); | 355 | Assert.That(groupToDelete.GroupContainsForeignPrims, Is.False); |
356 | 356 | ||
357 | List<SceneObjectGroup> storedObjects = scene.SimulationDataService.LoadObjects(scene.RegionInfo.RegionID); | 357 | List<SceneObjectGroup> storedObjects = scene.SimulationDataService.LoadObjects(scene.RegionInfo.RegionID); |
358 | 358 | ||