diff options
Diffstat (limited to 'OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs')
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index dae525d..9788f40 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | |||
@@ -5272,13 +5272,15 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
5272 | // for the client session anyway, in order to protect ourselves against bad code in plugins | 5272 | // for the client session anyway, in order to protect ourselves against bad code in plugins |
5273 | try | 5273 | try |
5274 | { | 5274 | { |
5275 | List<byte> visualparams = new List<byte>(); | 5275 | byte[] visualparams = new byte[appear.VisualParam.Length]; |
5276 | foreach (AgentSetAppearancePacket.VisualParamBlock x in appear.VisualParam) | 5276 | for (int i = 0; i < appear.VisualParam.Length; i++) |
5277 | { | 5277 | visualparams[i] = appear.VisualParam[i].ParamValue; |
5278 | visualparams.Add(x.ParamValue); | 5278 | |
5279 | } | 5279 | Primitive.TextureEntry te = null; |
5280 | if (appear.ObjectData.TextureEntry.Length > 1) | ||
5281 | te = new Primitive.TextureEntry(appear.ObjectData.TextureEntry, 0, appear.ObjectData.TextureEntry.Length); | ||
5280 | 5282 | ||
5281 | handlerSetAppearance(appear.ObjectData.TextureEntry, visualparams); | 5283 | handlerSetAppearance(te, visualparams); |
5282 | } | 5284 | } |
5283 | catch (Exception e) | 5285 | catch (Exception e) |
5284 | { | 5286 | { |