From 3b42b5f0984fd10de8f49794764f1efd688e8dcd Mon Sep 17 00:00:00 2001 From: Jeff Ames Date: Wed, 6 Feb 2008 10:19:30 +0000 Subject: Consolidated LoadAnims and AvatarAnimations constructor. Fixes locking issues with Animations in ScenePresence (bug #324) --- OpenSim/Region/Environment/Scenes/ScenePresence.cs | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'OpenSim/Region/Environment/Scenes/ScenePresence.cs') diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs index 5c33dfc..109f23c 100644 --- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs @@ -41,8 +41,9 @@ namespace OpenSim.Region.Environment.Scenes { private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); - public static AvatarAnimations Animations; + public static AvatarAnimations Animations = new AvatarAnimations(); public static byte[] DefaultTexture; + public LLUUID currentParcelUUID = LLUUID.Zero; private List m_animations = new List(); private List m_animationSeqs = new List(); @@ -333,12 +334,6 @@ namespace OpenSim.Region.Environment.Scenes AbsolutePosition = m_controllingClient.StartPos; - Animations = new AvatarAnimations(); - 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. try @@ -1643,13 +1638,6 @@ namespace OpenSim.Region.Environment.Scenes } /// - /// - /// - public static void LoadAnims() - { - } - - /// /// Handles part of the PID controller function for moving an avatar. /// public override void UpdateMovement() -- cgit v1.1