mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 02:05:34 +08:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user