From 525322efa23966ed3b0e3422ae8ebc52fde6444d Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Sun, 26 Oct 2014 12:24:12 +0000 Subject: bug fix --- OpenSim/Region/Framework/Scenes/KeyframeMotion.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/OpenSim/Region/Framework/Scenes/KeyframeMotion.cs b/OpenSim/Region/Framework/Scenes/KeyframeMotion.cs index a3ebe6f..e3f979f 100644 --- a/OpenSim/Region/Framework/Scenes/KeyframeMotion.cs +++ b/OpenSim/Region/Framework/Scenes/KeyframeMotion.cs @@ -785,6 +785,11 @@ namespace OpenSim.Region.Framework.Scenes public Byte[] Serialize() { + bool timerWasStopped; + lock (m_frames) + { + timerWasStopped = m_timerStopped; + } StopTimer(); MemoryStream ms = new MemoryStream(); @@ -795,7 +800,7 @@ namespace OpenSim.Region.Framework.Scenes m_serializedPosition = tmp.AbsolutePosition; fmt.Serialize(ms, this); m_group = tmp; - if (m_running && !m_waitingCrossing) + if (!timerWasStopped && m_running && !m_waitingCrossing) StartTimer(); return ms.ToArray(); -- cgit v1.1