Fix problems with regression tests by allowing invoke of Update() with a finite number of frames even if the scene isn't active.
parent
ab7b7c5d3d
commit
b9c2a1508e
|
@ -310,7 +310,8 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
/// Is the scene active?
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// If false, maintenance and update loops are not run.
|
||||
/// If false, maintenance and update loops are not being run. Updates can still be triggered manually if
|
||||
/// the scene is not active.
|
||||
/// </remarks>
|
||||
public bool Active
|
||||
{
|
||||
|
@ -1430,7 +1431,7 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
List<Vector3> coarseLocations;
|
||||
List<UUID> avatarUUIDs;
|
||||
|
||||
while (Active && !m_shuttingDown && (endRun == null || MaintenanceRun < endRun))
|
||||
while (!m_shuttingDown && ((endRun == null && Active) || MaintenanceRun < endRun))
|
||||
{
|
||||
runtc = Util.EnvironmentTickCount();
|
||||
++MaintenanceRun;
|
||||
|
@ -1489,7 +1490,7 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
int previousFrameTick, tmpMS;
|
||||
int maintc = Util.EnvironmentTickCount();
|
||||
|
||||
while (Active && !m_shuttingDown && (endFrame == null || Frame < endFrame))
|
||||
while (!m_shuttingDown && ((endFrame == null && Active) || Frame < endFrame))
|
||||
{
|
||||
++Frame;
|
||||
|
||||
|
|
|
@ -65,6 +65,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
|||
public void Init()
|
||||
{
|
||||
m_scene = new SceneHelpers().SetupScene();
|
||||
m_scene.Start();
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
|
Loading…
Reference in New Issue