aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs2
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs18
2 files changed, 3 insertions, 17 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs b/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs
index f34b6d2..b6a1564 100644
--- a/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs
@@ -214,7 +214,7 @@ namespace OpenSim.Region.CoreModules.Avatar.AvatarFactory
214 changed = sp.Appearance.SetVisualParams(visualParams); 214 changed = sp.Appearance.SetVisualParams(visualParams);
215 if (sp.Appearance.AvatarHeight > 0) 215 if (sp.Appearance.AvatarHeight > 0)
216 sp.SetHeight(sp.Appearance.AvatarHeight); 216 sp.SetHeight(sp.Appearance.AvatarHeight);
217 } 217 }
218 218
219 // Process the baked texture array 219 // Process the baked texture array
220 if (textureEntry != null) 220 if (textureEntry != null)
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index cda2006..5e96b0a 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -900,9 +900,6 @@ namespace OpenSim.Region.Framework.Scenes
900 } 900 }
901 AbsolutePosition = pos; 901 AbsolutePosition = pos;
902 902
903 if (m_appearance.AvatarHeight > 0)
904 SetHeight(m_appearance.AvatarHeight);
905
906 AddToPhysicalScene(isFlying); 903 AddToPhysicalScene(isFlying);
907 904
908 if (m_forceFly) 905 if (m_forceFly)
@@ -1036,10 +1033,6 @@ namespace OpenSim.Region.Framework.Scenes
1036 AbsolutePosition = pos; 1033 AbsolutePosition = pos;
1037 AddToPhysicalScene(isFlying); 1034 AddToPhysicalScene(isFlying);
1038 1035
1039 // FIXME: Move me into AddToPhysicalScene
1040 if (m_appearance.AvatarHeight > 0)
1041 SetHeight(m_appearance.AvatarHeight);
1042
1043 SendTerseUpdateToAllClients(); 1036 SendTerseUpdateToAllClients();
1044 } 1037 }
1045 1038
@@ -1053,9 +1046,6 @@ namespace OpenSim.Region.Framework.Scenes
1053 AbsolutePosition = pos; 1046 AbsolutePosition = pos;
1054 AddToPhysicalScene(isFlying); 1047 AddToPhysicalScene(isFlying);
1055 1048
1056 if (m_appearance.AvatarHeight > 0)
1057 SetHeight(m_appearance.AvatarHeight);
1058
1059 SendTerseUpdateToAllClients(); 1049 SendTerseUpdateToAllClients();
1060 } 1050 }
1061 1051
@@ -1825,12 +1815,6 @@ namespace OpenSim.Region.Framework.Scenes
1825 m_parentID = 0; 1815 m_parentID = 0;
1826 SendAvatarDataToAllAgents(); 1816 SendAvatarDataToAllAgents();
1827 m_requestedSitTargetID = 0; 1817 m_requestedSitTargetID = 0;
1828
1829 if (m_physicsActor != null)
1830 {
1831 if (m_appearance.AvatarHeight > 0)
1832 SetHeight(m_appearance.AvatarHeight);
1833 }
1834 } 1818 }
1835 1819
1836 Animator.TrySetMovementAnimation("STAND"); 1820 Animator.TrySetMovementAnimation("STAND");
@@ -3313,6 +3297,8 @@ namespace OpenSim.Region.Framework.Scenes
3313 m_physicsActor.OnOutOfBounds += OutOfBoundsCall; // Called for PhysicsActors when there's something wrong 3297 m_physicsActor.OnOutOfBounds += OutOfBoundsCall; // Called for PhysicsActors when there's something wrong
3314 m_physicsActor.SubscribeEvents(500); 3298 m_physicsActor.SubscribeEvents(500);
3315 m_physicsActor.LocalID = LocalId; 3299 m_physicsActor.LocalID = LocalId;
3300
3301 SetHeight(m_appearance.AvatarHeight);
3316 } 3302 }
3317 3303
3318 private void OutOfBoundsCall(Vector3 pos) 3304 private void OutOfBoundsCall(Vector3 pos)