Try to output avatar textures and make this test app a little more smart about what files to try and request.
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@469 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
@@ -44,17 +44,43 @@ namespace IA_TestAsyncImage
|
||||
Console.WriteLine("ImageManager not ready yet, queueing Avatar textures.");
|
||||
TextureQueue.Enqueue(avatar.FirstLifeImage);
|
||||
TextureQueue.Enqueue(avatar.ProfileImage);
|
||||
|
||||
foreach (TextureEntryFace tef in avatar.Textures.FaceTextures.Values)
|
||||
{
|
||||
TextureQueue.Enqueue(tef.TextureID);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (avatar.FirstLifeImage != null)
|
||||
{
|
||||
imgManager.RequestImageAsync(avatar.FirstLifeImage);
|
||||
if (imgManager.isCachedImage(avatar.FirstLifeImage) == false)
|
||||
{
|
||||
imgManager.RequestImageAsync(avatar.FirstLifeImage);
|
||||
}
|
||||
}
|
||||
|
||||
if (avatar.ProfileImage != null)
|
||||
{
|
||||
imgManager.RequestImageAsync(avatar.ProfileImage);
|
||||
if (imgManager.isCachedImage(avatar.FirstLifeImage) == false)
|
||||
{
|
||||
imgManager.RequestImageAsync(avatar.ProfileImage);
|
||||
}
|
||||
}
|
||||
|
||||
if (avatar.Textures != null)
|
||||
{
|
||||
foreach (TextureEntryFace tef in avatar.Textures.FaceTextures.Values)
|
||||
{
|
||||
if (imgManager.isCachedImage(avatar.FirstLifeImage) == false)
|
||||
{
|
||||
imgManager.RequestImageAsync(tef.TextureID);
|
||||
}
|
||||
else
|
||||
{
|
||||
Console.WriteLine("Already cached: " + tef.TextureID);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -75,14 +101,28 @@ namespace IA_TestAsyncImage
|
||||
{
|
||||
if ((prim.Textures.DefaultTexture != null) && (prim.Textures.DefaultTexture.TextureID != null))
|
||||
{
|
||||
imgManager.RequestImageAsync(prim.Textures.DefaultTexture.TextureID);
|
||||
if (imgManager.isCachedImage(prim.Textures.DefaultTexture.TextureID) == false)
|
||||
{
|
||||
imgManager.RequestImageAsync(prim.Textures.DefaultTexture.TextureID);
|
||||
}
|
||||
else
|
||||
{
|
||||
Console.WriteLine("Already cached: " + prim.Textures.DefaultTexture.TextureID);
|
||||
}
|
||||
}
|
||||
|
||||
if (prim.Textures.FaceTextures != null)
|
||||
{
|
||||
foreach (TextureEntryFace tef in prim.Textures.FaceTextures.Values)
|
||||
{
|
||||
imgManager.RequestImageAsync(tef.TextureID);
|
||||
if (imgManager.isCachedImage(tef.TextureID) == false)
|
||||
{
|
||||
imgManager.RequestImageAsync(tef.TextureID);
|
||||
}
|
||||
else
|
||||
{
|
||||
Console.WriteLine("Already cached: " + tef.TextureID);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user