Only send the actual bakes to the bakes module
parent
46424a4a77
commit
36ecad98a1
|
@ -462,14 +462,16 @@ namespace OpenSim.Region.CoreModules.Avatar.AvatarFactory
|
||||||
|
|
||||||
WearableCacheItem[] toBakedModule = new WearableCacheItem[AvatarAppearance.BAKE_INDICES.Length];
|
WearableCacheItem[] toBakedModule = new WearableCacheItem[AvatarAppearance.BAKE_INDICES.Length];
|
||||||
|
|
||||||
for (int i = 0; i < cacheItems.Length; i++)
|
for (int i = 0; i < AvatarAppearance.BAKE_INDICES.Length; i++)
|
||||||
{
|
{
|
||||||
int idx = (int)cacheItems[i].TextureIndex;
|
int idx = (int)AvatarAppearance.BAKE_INDICES[i];
|
||||||
cacheItems[i].CacheId = wearableCache[idx].CacheId;
|
toBakedModule[i] = new WearableCacheItem();
|
||||||
cacheItems[i].TextureID = wearableCache[idx].TextureID;
|
toBakedModule[i].TextureIndex = (uint)idx;
|
||||||
cacheItems[i].TextureAsset = wearableCache[idx].TextureAsset;
|
toBakedModule[i].CacheId = wearableCache[idx].CacheId;
|
||||||
|
toBakedModule[i].TextureID = wearableCache[idx].TextureID;
|
||||||
|
toBakedModule[i].TextureAsset = wearableCache[idx].TextureAsset;
|
||||||
}
|
}
|
||||||
m_BakedTextureModule.Store(sp.UUID, cacheItems);
|
m_BakedTextureModule.Store(sp.UUID, toBakedModule);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue