From fe86df0ec9582c61ad3a50b53a73398393b13c87 Mon Sep 17 00:00:00 2001 From: Robert Adams Date: Sun, 9 Aug 2015 15:34:06 -0700 Subject: BulletSim: update the motion actors so they completely clean themselves when Dispose() is called. This reduces chance of object leakage when destroying objects. Rearrange initialization and shut down of BSActorLockAxis so it is consistant with other actors. --- OpenSim/Region/Physics/BulletSPlugin/BSActorAvatarMove.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'OpenSim/Region/Physics/BulletSPlugin/BSActorAvatarMove.cs') diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSActorAvatarMove.cs b/OpenSim/Region/Physics/BulletSPlugin/BSActorAvatarMove.cs index c0d65be..bde4557 100755 --- a/OpenSim/Region/Physics/BulletSPlugin/BSActorAvatarMove.cs +++ b/OpenSim/Region/Physics/BulletSPlugin/BSActorAvatarMove.cs @@ -71,8 +71,7 @@ public class BSActorAvatarMove : BSActor public override void Dispose() { base.SetEnabled(false); - // Now that turned off, remove any state we have in the scene. - Refresh(); + DeactivateAvatarMove(); } // Called when physical parameters (properties set in Bullet) need to be re-applied. -- cgit v1.1