Protect one more update of the baked texture hashes.

user_profiles
Mic Bowman 2013-05-24 13:25:25 -07:00
parent 681fbda4b6
commit bb0ea25090
1 changed files with 5 additions and 2 deletions

View File

@ -214,8 +214,11 @@ namespace OpenSim.Region.CoreModules.Avatar.AvatarFactory
// Save the wearble hashes in the appearance // Save the wearble hashes in the appearance
sp.Appearance.ResetTextureHashes(); sp.Appearance.ResetTextureHashes();
if (m_reusetextures)
{
foreach (CachedTextureRequestArg arg in hashes) foreach (CachedTextureRequestArg arg in hashes)
sp.Appearance.SetTextureHash(arg.BakedTextureIndex,arg.WearableHashID); sp.Appearance.SetTextureHash(arg.BakedTextureIndex,arg.WearableHashID);
}
// This appears to be set only in the final stage of the appearance // This appears to be set only in the final stage of the appearance
// update transaction. In theory, we should be able to do an immediate // update transaction. In theory, we should be able to do an immediate