diff options
author | Justin Clark-Casey (justincc) | 2011-03-23 21:50:56 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-03-23 21:53:14 +0000 |
commit | d011896341d09ce6c10a801264e663b6a19f0b48 (patch) | |
tree | 02369e0c5a2103e8f42f5bf6128814de9e2afaf5 /OpenSim/Region/CoreModules/World/Land/Tests/PrimCountModuleTests.cs | |
parent | Fix a typo in the SQLite DLL config and amend the instructions for running on... (diff) | |
download | opensim-SC_OLD-d011896341d09ce6c10a801264e663b6a19f0b48.zip opensim-SC_OLD-d011896341d09ce6c10a801264e663b6a19f0b48.tar.gz opensim-SC_OLD-d011896341d09ce6c10a801264e663b6a19f0b48.tar.bz2 opensim-SC_OLD-d011896341d09ce6c10a801264e663b6a19f0b48.tar.xz |
Add generic EventManager.OnObjectAddedToScene and get PrimCountModule to listen for that rather than EventManager.OnParcelPrimCountAdd
OnParcelPrimCountAdd had the wrong semantics for the PrimCountModule - it was invoked for every entity in the scene, not just new ones, which would screw up the untainted count.
Extend automated test for this scenario.
Diffstat (limited to 'OpenSim/Region/CoreModules/World/Land/Tests/PrimCountModuleTests.cs')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Land/Tests/PrimCountModuleTests.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/World/Land/Tests/PrimCountModuleTests.cs b/OpenSim/Region/CoreModules/World/Land/Tests/PrimCountModuleTests.cs index 402965f..fd332ed 100644 --- a/OpenSim/Region/CoreModules/World/Land/Tests/PrimCountModuleTests.cs +++ b/OpenSim/Region/CoreModules/World/Land/Tests/PrimCountModuleTests.cs | |||
@@ -67,6 +67,8 @@ namespace OpenSim.Region.CoreModules.World.Land.Tests | |||
67 | = new SceneObjectPart(UUID.Zero, PrimitiveBaseShape.Default, Vector3.Zero, Quaternion.Identity, Vector3.Zero) | 67 | = new SceneObjectPart(UUID.Zero, PrimitiveBaseShape.Default, Vector3.Zero, Quaternion.Identity, Vector3.Zero) |
68 | { Name = objName, UUID = objUuid }; | 68 | { Name = objName, UUID = objUuid }; |
69 | 69 | ||
70 | Assert.That(pcm.GetOwnerCount(lo.LandData.GlobalID), Is.EqualTo(0)); | ||
71 | |||
70 | scene.AddNewSceneObject(new SceneObjectGroup(part), false); | 72 | scene.AddNewSceneObject(new SceneObjectGroup(part), false); |
71 | 73 | ||
72 | Assert.That(pcm.GetOwnerCount(lo.LandData.GlobalID), Is.EqualTo(1)); | 74 | Assert.That(pcm.GetOwnerCount(lo.LandData.GlobalID), Is.EqualTo(1)); |