diff options
author | Nyx Linden <nyx@lindenlab.com> | 2010-05-19 19:49:50 -0400 |
---|---|---|
committer | Nyx Linden <nyx@lindenlab.com> | 2010-05-19 19:49:50 -0400 |
commit | b9096fc954d615a9eff44c3e9bfe1c7d9cadd87a (patch) | |
tree | cfbba634d4ef9b9ba40e00e8dee179a7423b199c /indra/newview/llagent.cpp | |
parent | 8c4ec8ac9da1845a4aa78a6a38f64b5fc17b2a90 (diff) | |
parent | 8487341b0f255e65044c3f7e3dc09461b4e2351e (diff) |
automated merge with viewer-public
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()) { |