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,6 +5072,10 @@ namespace OpenSim.Region.Framework.Scenes
} }
catch { } catch { }
// we are losing animator somewhere
if (Animator == null)
Animator = new ScenePresenceAnimator(this);
else
Animator.ResetAnimations(); Animator.ResetAnimations();
Overrides.CopyAOPairsFrom(cAgent.MovementAnimationOverRides); Overrides.CopyAOPairsFrom(cAgent.MovementAnimationOverRides);