aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/ScenePresence.cs
diff options
context:
space:
mode:
authorJonathan Freedman2010-10-30 18:28:07 -0400
committerJonathan Freedman2010-10-30 18:28:07 -0400
commit95a0ea78f9604e8b4fcf0617c0943fe0486f4d08 (patch)
tree04358e5eb88e47a320f87ff8fc9f27276bbf4697 /OpenSim/Region/Framework/Scenes/ScenePresence.cs
parentMerge branch 'master' into mantis5110 (diff)
parentFixed: ToAvatarAppearance wasn't retrieving the AvatarHeight. (diff)
downloadopensim-SC_OLD-95a0ea78f9604e8b4fcf0617c0943fe0486f4d08.zip
opensim-SC_OLD-95a0ea78f9604e8b4fcf0617c0943fe0486f4d08.tar.gz
opensim-SC_OLD-95a0ea78f9604e8b4fcf0617c0943fe0486f4d08.tar.bz2
opensim-SC_OLD-95a0ea78f9604e8b4fcf0617c0943fe0486f4d08.tar.xz
Merge branch 'master' into mantis5110
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs22
1 files changed, 11 insertions, 11 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index 8aa507f..0390414 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -858,17 +858,6 @@ namespace OpenSim.Region.Framework.Scenes
858 } 858 }
859 AbsolutePosition = pos; 859 AbsolutePosition = pos;
860 860
861 AddToPhysicalScene(isFlying);
862
863 if (m_forceFly)
864 {
865 m_physicsActor.Flying = true;
866 }
867 else if (m_flyDisabled)
868 {
869 m_physicsActor.Flying = false;
870 }
871
872 if (m_appearance != null) 861 if (m_appearance != null)
873 { 862 {
874 if (m_appearance.AvatarHeight > 0) 863 if (m_appearance.AvatarHeight > 0)
@@ -881,6 +870,17 @@ namespace OpenSim.Region.Framework.Scenes
881 m_appearance = new AvatarAppearance(UUID); 870 m_appearance = new AvatarAppearance(UUID);
882 } 871 }
883 872
873 AddToPhysicalScene(isFlying);
874
875 if (m_forceFly)
876 {
877 m_physicsActor.Flying = true;
878 }
879 else if (m_flyDisabled)
880 {
881 m_physicsActor.Flying = false;
882 }
883
884 // Don't send an animation pack here, since on a region crossing this will sometimes cause a flying 884 // Don't send an animation pack here, since on a region crossing this will sometimes cause a flying
885 // avatar to return to the standing position in mid-air. On login it looks like this is being sent 885 // avatar to return to the standing position in mid-air. On login it looks like this is being sent
886 // elsewhere anyway 886 // elsewhere anyway