aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/AvatarAppearance.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/Scenes/AvatarAppearance.cs8
1 files changed, 3 insertions, 5 deletions
diff --git a/OpenSim/Region/Environment/Scenes/AvatarAppearance.cs b/OpenSim/Region/Environment/Scenes/AvatarAppearance.cs
index 8f29507..c482d94 100644
--- a/OpenSim/Region/Environment/Scenes/AvatarAppearance.cs
+++ b/OpenSim/Region/Environment/Scenes/AvatarAppearance.cs
@@ -26,6 +26,7 @@
26 */ 26 */
27 27
28using System; 28using System;
29using System.Collections.Generic;
29using System.Runtime.Serialization; 30using System.Runtime.Serialization;
30using System.Security.Permissions; 31using System.Security.Permissions;
31using libsecondlife; 32using libsecondlife;
@@ -102,15 +103,12 @@ namespace OpenSim.Region.Environment.Scenes
102 /// </summary> 103 /// </summary>
103 /// <param name="texture"></param> 104 /// <param name="texture"></param>
104 /// <param name="visualParam"></param> 105 /// <param name="visualParam"></param>
105 public void SetAppearance(byte[] texture, AgentSetAppearancePacket.VisualParamBlock[] visualParam) 106 public void SetAppearance(byte[] texture, List<byte> visualParam)
106 { 107 {
107 LLObject.TextureEntry textureEnt = new LLObject.TextureEntry(texture, 0, texture.Length); 108 LLObject.TextureEntry textureEnt = new LLObject.TextureEntry(texture, 0, texture.Length);
108 m_textureEntry = textureEnt; 109 m_textureEntry = textureEnt;
109 110
110 for (int i = 0; i < visualParam.Length; i++) 111 m_visualParams = visualParam.ToArray();
111 {
112 m_visualParams[i] = visualParam[i].ParamValue;
113 }
114 112
115 // Teravus : Nifty AV Height Getting Maaaaagical formula. Oh how we love turning 0-255 into meters. 113 // Teravus : Nifty AV Height Getting Maaaaagical formula. Oh how we love turning 0-255 into meters.
116 // (float)m_visualParams[25] = Height 114 // (float)m_visualParams[25] = Height