avoid a null ref ( this should not be needed)

0.9.1.0-post-fixes
UbitUmarov 2019-09-18 05:27:25 +01:00
parent 4161182be0
commit 24a977323b
1 changed files with 5 additions and 1 deletions

View File

@ -5072,7 +5072,11 @@ namespace OpenSim.Region.Framework.Scenes
}
catch { }
Animator.ResetAnimations();
// we are losing animator somewhere
if (Animator == null)
Animator = new ScenePresenceAnimator(this);
else
Animator.ResetAnimations();
Overrides.CopyAOPairsFrom(cAgent.MovementAnimationOverRides);
int nanim = ControllingClient.NextAnimationSequenceNumber;