mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 02:36:00 +08:00
Revert "Add a frame based watchdog function to keyframed motion"
This reverts commit 2d98d6354c.
This commit is contained in:
@@ -64,10 +64,6 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
|
||||
[NonSerialized()]
|
||||
protected Timer m_timer = new Timer();
|
||||
[NonSerialized()]
|
||||
protected bool m_frameHooked;
|
||||
[NonSerialized()]
|
||||
protected int frameCount = 0;
|
||||
|
||||
[NonSerialized()]
|
||||
private SceneObjectGroup m_group;
|
||||
@@ -166,22 +162,6 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
if (m_keyframes.Length > 0)
|
||||
m_timer.Start();
|
||||
m_running = true;
|
||||
if (!m_frameHooked)
|
||||
{
|
||||
m_group.Scene.EventManager.OnFrame += OnFrame;
|
||||
m_frameHooked = true;
|
||||
}
|
||||
}
|
||||
|
||||
private void OnFrame()
|
||||
{
|
||||
frameCount++;
|
||||
if (frameCount >= 30)
|
||||
{
|
||||
frameCount = 0;
|
||||
if (m_running)
|
||||
Start();
|
||||
}
|
||||
}
|
||||
|
||||
public void Stop()
|
||||
|
||||
Reference in New Issue
Block a user