aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-09-13 18:08:05 +0100
committerJustin Clark-Casey (justincc)2011-09-13 18:08:05 +0100
commitf09a90d8a7cf1e4b32845c3ffddbf1ca780e664c (patch)
treea0659fa56ade3c0f5e307d410c2ffb18f96fb009 /OpenSim/Region
parentIn SG.AddSceneObject(), stop unnecessarily adding the root part to object ind... (diff)
downloadopensim-SC-f09a90d8a7cf1e4b32845c3ffddbf1ca780e664c.zip
opensim-SC-f09a90d8a7cf1e4b32845c3ffddbf1ca780e664c.tar.gz
opensim-SC-f09a90d8a7cf1e4b32845c3ffddbf1ca780e664c.tar.bz2
opensim-SC-f09a90d8a7cf1e4b32845c3ffddbf1ca780e664c.tar.xz
extend TestGetSceneObjectByPartLocalId() to test state after scene object deletion
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/Framework/Scenes/Tests/SceneObjectBasicTests.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Tests/SceneObjectBasicTests.cs b/OpenSim/Region/Framework/Scenes/Tests/SceneObjectBasicTests.cs
index 281b85c..9586877 100644
--- a/OpenSim/Region/Framework/Scenes/Tests/SceneObjectBasicTests.cs
+++ b/OpenSim/Region/Framework/Scenes/Tests/SceneObjectBasicTests.cs
@@ -132,6 +132,12 @@ namespace OpenSim.Region.Framework.Scenes.Tests
132 132
133 // Test that we don't get back an object for a local id that doesn't exist 133 // Test that we don't get back an object for a local id that doesn't exist
134 Assert.That(scene.GetGroupByPrim(999), Is.Null); 134 Assert.That(scene.GetGroupByPrim(999), Is.Null);
135
136 // Now delete the scene object and check again
137 scene.DeleteSceneObject(so, false);
138
139 Assert.That(scene.GetGroupByPrim(so.LocalId), Is.Null);
140 Assert.That(scene.GetGroupByPrim(parts[partsToTestCount - 1].LocalId), Is.Null);
135 } 141 }
136 142
137 /// <summary> 143 /// <summary>