From 90b35beee7d6e6a3ffb9537fafc3f6c24ce20eed Mon Sep 17 00:00:00 2001 From: Brian McBee Date: Thu, 24 Jan 2008 02:36:01 +0000 Subject: Another try at fixing the Animations problem on region crossing. --- OpenSim/Region/Environment/Scenes/ScenePresence.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs index f37b38b..06b4035 100644 --- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs @@ -332,7 +332,10 @@ namespace OpenSim.Region.Environment.Scenes AbsolutePosition = m_controllingClient.StartPos; Animations = new AvatarAnimations(); - Animations.LoadAnims(); + lock (Animations) + { + Animations.LoadAnims(); + } // TODO: m_animations and m_animationSeqs should always be of the same length. // Move them into an object to (hopefully) avoid threading issues. -- cgit v1.1