aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorTeravus Ovares2009-02-03 14:11:52 +0000
committerTeravus Ovares2009-02-03 14:11:52 +0000
commitc80733cc985411937f59c6cd93e52989d00a13a2 (patch)
treeb2cdebed132c43b6cc15f42fb7f7437535080148 /OpenSim
parentChange access levels from private to protected to facilitate (diff)
downloadopensim-SC_OLD-c80733cc985411937f59c6cd93e52989d00a13a2.zip
opensim-SC_OLD-c80733cc985411937f59c6cd93e52989d00a13a2.tar.gz
opensim-SC_OLD-c80733cc985411937f59c6cd93e52989d00a13a2.tar.bz2
opensim-SC_OLD-c80733cc985411937f59c6cd93e52989d00a13a2.tar.xz
* Fixes mantis #3070
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/Environment/Scenes/ScenePresence.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs
index 4bb1f84..7c0df39 100644
--- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs
@@ -2213,6 +2213,14 @@ namespace OpenSim.Region.Environment.Scenes
2213 /// <param name="visualParam"></param> 2213 /// <param name="visualParam"></param>
2214 public void SetAppearance(byte[] texture, List<byte> visualParam) 2214 public void SetAppearance(byte[] texture, List<byte> visualParam)
2215 { 2215 {
2216 if (m_physicsActor != null)
2217 {
2218 // This may seem like it's redundant, remove the avatar from the physics scene
2219 // just to add it back again, but it saves us from having to update
2220 // 3 variables 10 times a second.
2221 m_scene.PhysicsScene.RemoveAvatar(m_physicsActor);
2222 AddToPhysicalScene();
2223 }
2216 m_appearance.SetAppearance(texture, visualParam); 2224 m_appearance.SetAppearance(texture, visualParam);
2217 SetHeight(m_appearance.AvatarHeight); 2225 SetHeight(m_appearance.AvatarHeight);
2218 m_scene.CommsManager.AvatarService.UpdateUserAppearance(m_controllingClient.AgentId, m_appearance); 2226 m_scene.CommsManager.AvatarService.UpdateUserAppearance(m_controllingClient.AgentId, m_appearance);