Refactoring.
-New LLWearableType class, uses LLDictionary for typeindex<->typename<->assettype<->typelabel conversions. -LLAvatarDefines cleaned up. Uses LLDictionary for Mesh, TE, Baked lookups/conversions. -LLAgentWearables TEWearable stuff removed. Use LLAvatarDefines. -LLWearable WearableType conversions yanked. Use LLWearableType. -LLVOAvatar TEWEarable stuff removed. Use LLAvatarDefines. -EWearableType now LLWearableType::EType -LLWearable::getID() renamed to LLWearable::getAssetID() VOAvatar cleanup. -Removed redundant TEWearable functions. -Some code migrated to F32 LLVOAvatar::calcMorphAmount(). No functional change. -LLVOAvatar::removeMissingBakedTextures virtual. Implementation moved to VOAvatarSelf
This commit is contained in:
@@ -80,9 +80,9 @@ public:
|
||||
}
|
||||
|
||||
// Add all currently worn wearables
|
||||
for (S32 idxType = 0; idxType < WT_COUNT; idxType++)
|
||||
for (S32 idxType = 0; idxType < LLWearableType::WT_COUNT; idxType++)
|
||||
{
|
||||
const LLUUID& idItem = gAgentWearables.getWearableItemID((EWearableType)idxType);
|
||||
const LLUUID& idItem = gAgentWearables.getWearableItemID((LLWearableType::EType)idxType);
|
||||
if (idItem.isNull())
|
||||
continue;
|
||||
idItems.push_back(idItem);
|
||||
@@ -457,9 +457,9 @@ void LLCOFMgr::synchWearables()
|
||||
|
||||
// Grab the item UUIDs of all currently worn wearables
|
||||
uuid_vec_t newItems;
|
||||
for (S32 idxType = 0; idxType < WT_COUNT; idxType++)
|
||||
for (S32 idxType = 0; idxType < LLWearableType::WT_COUNT; idxType++)
|
||||
{
|
||||
const LLUUID& idItem = gAgentWearables.getWearableItemID((EWearableType)idxType);
|
||||
const LLUUID& idItem = gAgentWearables.getWearableItemID((LLWearableType::EType)idxType);
|
||||
if (idItem.isNull())
|
||||
continue;
|
||||
newItems.push_back(idItem);
|
||||
|
||||
Reference in New Issue
Block a user