diff options
author | Richard Nelson <none@none> | 2010-06-04 14:26:08 -0700 |
---|---|---|
committer | Richard Nelson <none@none> | 2010-06-04 14:26:08 -0700 |
commit | 1be76eccdfed4d02f7ff8e34a29528887dd8d26c (patch) | |
tree | 0f1ef59f9ff5986dbd6ce8ab117c66f92b4205bc /indra/newview/llagentwearables.cpp | |
parent | 46e1253ee11cd2aca41314ec4e9c053bddd7a0b4 (diff) | |
parent | 05d7addde73511d303f9203d0dc007ebb2e5b299 (diff) |
merge
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); } |