diff options
author | Dessie Linden <dessie@lindenlab.com> | 2010-06-04 09:03:00 -0700 |
---|---|---|
committer | Dessie Linden <dessie@lindenlab.com> | 2010-06-04 09:03:00 -0700 |
commit | b570ee5fbc0953d358b33c99a6c7007bf681d717 (patch) | |
tree | 955aef6bf0e0a40f6c0bad763ddbac1d6fb4a2f4 /indra/newview/llagentwearables.cpp | |
parent | 44ac5dc9377915d5d1a31dc3d52423d07b4d7f02 (diff) | |
parent | a77d273e3ab448d84507bfdb763df8335eadea9e (diff) |
Merged from viewer-public
Diffstat (limited to 'indra/newview/llagentwearables.cpp')
-rw-r--r-- | indra/newview/llagentwearables.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/indra/newview/llagentwearables.cpp b/indra/newview/llagentwearables.cpp index e0104eddf0..d823a3cbbb 100644 --- a/indra/newview/llagentwearables.cpp +++ b/indra/newview/llagentwearables.cpp @@ -1638,10 +1638,6 @@ LLUUID LLAgentWearables::computeBakedTextureHash(LLVOAvatarDefines::EBakedTextur { LLUUID asset_id = wearable->getAssetID(); hash.update((const unsigned char*)asset_id.mData, UUID_BYTES); - if (!generate_valid_hash) - { - hash.update((const unsigned char*)asset_id.mData, UUID_BYTES); - } hash_computed = true; } } @@ -1649,6 +1645,15 @@ LLUUID LLAgentWearables::computeBakedTextureHash(LLVOAvatarDefines::EBakedTextur if (hash_computed) { hash.update((const unsigned char*)baked_dict->mWearablesHashID.mData, UUID_BYTES); + + // Add some garbage into the hash so that it becomes invalid. + if (!generate_valid_hash) + { + if (isAgentAvatarValid()) + { + hash.update((const unsigned char*)gAgentAvatarp->getID().mData, UUID_BYTES); + } + } hash.finalize(); hash.raw_digest(hash_id.mData); } |