From 8fb6ae379ae830da0b52b1825ec74fbcded5981b Mon Sep 17 00:00:00 2001 From: Melanie Date: Sat, 5 Nov 2011 22:05:27 +0000 Subject: [PATCH] Change m_falling public to a getter property. --- .../Framework/Scenes/Animation/ScenePresenceAnimator.cs | 6 +++++- OpenSim/Region/Framework/Scenes/ScenePresence.cs | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/OpenSim/Region/Framework/Scenes/Animation/ScenePresenceAnimator.cs b/OpenSim/Region/Framework/Scenes/Animation/ScenePresenceAnimator.cs index cc96b243b8..c39f34f901 100644 --- a/OpenSim/Region/Framework/Scenes/Animation/ScenePresenceAnimator.cs +++ b/OpenSim/Region/Framework/Scenes/Animation/ScenePresenceAnimator.cs @@ -66,7 +66,11 @@ namespace OpenSim.Region.Framework.Scenes.Animation public bool m_jumping = false; // Add for jumping public float m_jumpVelocity = 0f; // Add for jumping private int m_landing = 0; // Add for jumping - public bool m_falling = false; // Add for falling + public bool Falling + { + get { return m_falling; } + } + private bool m_falling = false; // Add for falling private float m_fallHeight; // Add for falling /// diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index cca55be5f8..1067b9d57e 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs @@ -2479,7 +2479,7 @@ namespace OpenSim.Region.Framework.Scenes // m_log.Info("[AGENT]: Stop Flying"); //} } - if (Animator.m_falling && m_wasFlying) // if falling from flying, disable motion add + if (Animator.Falling && m_wasFlying) // if falling from flying, disable motion add { direc *= 0.0f; }