aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorMelanie2011-10-11 22:15:25 +0100
committerMelanie2011-10-11 22:15:25 +0100
commit03d533dc1e9ad236e0aa437287bc9a79de548af6 (patch)
treef9a4ae4fb5367a6a415ee8559b6f9d66d1e99124 /OpenSim
parentMerge commit '744602f6d170373882cb31155c8c899b43a5339e' into bigmerge (diff)
parentOn setting a new avatar appearance, if height hasn't changed then don't set t... (diff)
downloadopensim-SC-03d533dc1e9ad236e0aa437287bc9a79de548af6.zip
opensim-SC-03d533dc1e9ad236e0aa437287bc9a79de548af6.tar.gz
opensim-SC-03d533dc1e9ad236e0aa437287bc9a79de548af6.tar.bz2
opensim-SC-03d533dc1e9ad236e0aa437287bc9a79de548af6.tar.xz
Merge commit '385c4a210deb63c25f082ab8a3f0c63c7bff8fb5' into bigmerge
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs4
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs4
2 files changed, 7 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs b/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs
index c5a1828..bb63bcd 100644
--- a/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs
@@ -211,8 +211,10 @@ namespace OpenSim.Region.CoreModules.Avatar.AvatarFactory
211 // Process the visual params, this may change height as well 211 // Process the visual params, this may change height as well
212 if (visualParams != null) 212 if (visualParams != null)
213 { 213 {
214 float oldHeight = sp.Appearance.AvatarHeight;
214 changed = sp.Appearance.SetVisualParams(visualParams); 215 changed = sp.Appearance.SetVisualParams(visualParams);
215 if (sp.Appearance.AvatarHeight > 0) 216
217 if (sp.Appearance.AvatarHeight != oldHeight && sp.Appearance.AvatarHeight > 0)
216 sp.SetHeight(sp.Appearance.AvatarHeight); 218 sp.SetHeight(sp.Appearance.AvatarHeight);
217 } 219 }
218 220
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index 697a9f8..ef291f7 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -3661,6 +3661,10 @@ namespace OpenSim.Region.Framework.Scenes
3661 /// </summary> 3661 /// </summary>
3662 public void AddToPhysicalScene(bool isFlying) 3662 public void AddToPhysicalScene(bool isFlying)
3663 { 3663 {
3664// m_log.DebugFormat(
3665// "[SCENE PRESENCE]: Adding physics actor for {0}, ifFlying = {1} in {2}",
3666// Name, isFlying, Scene.RegionInfo.RegionName);
3667
3664 if (m_appearance.AvatarHeight == 0) 3668 if (m_appearance.AvatarHeight == 0)
3665 m_appearance.SetHeight(); 3669 m_appearance.SetHeight();
3666 3670