Fix bug where removing a physical linkset would only decrement the Active Objects statistic by 1 instead of by the number of prims removed.

Unlike LL, OpenSimulator currently uses this stat to record the number of prims in the physics simulation, even when they are at rest.
Added regression test for this case.
This commit is contained in:
Justin Clark-Casey (justincc)
2013-11-13 23:25:54 +00:00
parent d71ebb7ec8
commit 7da10850b0
2 changed files with 73 additions and 2 deletions

View File

@@ -519,12 +519,12 @@ namespace OpenSim.Region.Framework.Scenes
protected internal void AddPhysicalPrim(int number)
{
m_physicalPrim++;
m_physicalPrim += number;
}
protected internal void RemovePhysicalPrim(int number)
{
m_physicalPrim--;
m_physicalPrim -= number;
}
protected internal void AddToScriptLPS(int number)