diff options
author | Loren Shih <seraph@lindenlab.com> | 2010-05-24 12:55:22 -0400 |
---|---|---|
committer | Loren Shih <seraph@lindenlab.com> | 2010-05-24 12:55:22 -0400 |
commit | 583060bc631641d24b607289a77b458078b3e4a8 (patch) | |
tree | afb816976227266bc404c780bcbc5a2c218085cb /indra/newview/llagent.cpp | |
parent | b92c1b6d74818dacbaeaa2c7c3965dd431463b50 (diff) | |
parent | bd53640901e93346fdc5d3dde534b6be294078a0 (diff) |
automated merge
Diffstat (limited to 'indra/newview/llagent.cpp')
-rw-r--r-- | indra/newview/llagent.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp index 529ce950e4..f96a59e97a 100644 --- a/indra/newview/llagent.cpp +++ b/indra/newview/llagent.cpp @@ -3583,12 +3583,15 @@ void LLAgent::sendAgentSetAppearance() { // LLWearableType::EType wearable_type = gBakedWearableMap[baked_index][wearable_num]; const LLWearableType::EType wearable_type = baked_dict->mWearables[i]; - // MULTI-WEARABLE: fixed to 0th - extend to everything once messaging works. - const LLWearable* wearable = gAgentWearables.getWearable(wearable_type,0); - if (wearable) - { - hash ^= wearable->getAssetID(); - } + for (U8 wearable_index =0; wearable_index < gAgentWearables.getWearableCount(wearable_type); ++wearable_index) + { + const LLWearable* wearable = gAgentWearables.getWearable(wearable_type,wearable_index); + if (wearable) + { + // MULTI-WEARABLE: make order-dependent (use MD5 hash) + hash ^= wearable->getAssetID(); + } + } } if (hash.notNull()) { |