OpenSim.Region.Framework.Scenes.UuidGatherer.GetWearableAssetUuids C# (CSharp) Method

GetWearableAssetUuids() protected method

Record the uuids referenced by the given wearable asset
protected GetWearableAssetUuids ( UUID wearableAssetUuid, AssetType>.IDictionary assetUuids ) : void
wearableAssetUuid UUID
assetUuids AssetType>.IDictionary Dictionary in which to record the references
return void
        protected void GetWearableAssetUuids(UUID wearableAssetUuid, IDictionary<UUID, AssetType> assetUuids)
        {
            AssetBase assetBase = GetAsset(wearableAssetUuid);

            if (null != assetBase)
            {
                //m_log.Debug(new System.Text.ASCIIEncoding().GetString(bodypartAsset.Data));
                AssetWearable wearableAsset = new AssetBodypart(wearableAssetUuid, assetBase.Data);
                wearableAsset.Decode();
    
                //m_log.DebugFormat(
                //    "[ARCHIVER]: Wearable asset {0} references {1} assets", wearableAssetUuid, wearableAsset.Textures.Count);
    
                foreach (UUID uuid in wearableAsset.Textures.Values)
                {
                    assetUuids[uuid] = AssetType.Texture;
                }
            }
        }