aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorSean Dague2008-05-16 19:24:28 +0000
committerSean Dague2008-05-16 19:24:28 +0000
commitf99b4cbe3b53abcbfe5e751474085f7653997cc4 (patch)
treefa4b98afaa7b6579aa6e26a9476b2b5d191ca64f /OpenSim
parentit helps when both sides of the xml-rpc server agree on the method names (diff)
downloadopensim-SC-f99b4cbe3b53abcbfe5e751474085f7653997cc4.zip
opensim-SC-f99b4cbe3b53abcbfe5e751474085f7653997cc4.tar.gz
opensim-SC-f99b4cbe3b53abcbfe5e751474085f7653997cc4.tar.bz2
opensim-SC-f99b4cbe3b53abcbfe5e751474085f7653997cc4.tar.xz
prime the wearables structure, which should fix the exception
FluxOne found.
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Framework/AvatarAppearance.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenSim/Framework/AvatarAppearance.cs b/OpenSim/Framework/AvatarAppearance.cs
index d4bfb2c..53c0d92 100644
--- a/OpenSim/Framework/AvatarAppearance.cs
+++ b/OpenSim/Framework/AvatarAppearance.cs
@@ -371,6 +371,14 @@ namespace OpenSim.Framework
371 VisualParams = (byte[])h["visual_params"]; 371 VisualParams = (byte[])h["visual_params"];
372 Texture = new LLObject.TextureEntry((byte[])h["texture"], 0, ((byte[])h["texture"]).Length); 372 Texture = new LLObject.TextureEntry((byte[])h["texture"], 0, ((byte[])h["texture"]).Length);
373 AvatarHeight = (float)Convert.ToDouble((string)h["avatar_height"]); 373 AvatarHeight = (float)Convert.ToDouble((string)h["avatar_height"]);
374
375 m_wearables = new AvatarWearable[MAX_WEARABLES];
376 for (int i = 0; i < MAX_WEARABLES; i++)
377 {
378 // this makes them all null
379 m_wearables[i] = new AvatarWearable();
380 }
381
374 BodyItem = new LLUUID((string)h["body_item"]); 382 BodyItem = new LLUUID((string)h["body_item"]);
375 BodyAsset = new LLUUID((string)h["body_asset"]); 383 BodyAsset = new LLUUID((string)h["body_asset"]);
376 SkinItem = new LLUUID((string)h["skin_item"]); 384 SkinItem = new LLUUID((string)h["skin_item"]);