add MaterialID

master
Christopher 2020-06-28 14:07:18 +02:00
parent 61cb8c2e85
commit b4def9d65d
1 changed files with 9 additions and 1 deletions

View File

@ -116,8 +116,16 @@ namespace OpenSim.Modules.TextureFetcher
Primitive.TextureEntry textures = part.Shape.Textures;
int allSides = part.GetNumberOfSides();
for (uint i = 0; i < allSides; i++)
{
if (textures.FaceTextures[i] != null)
allTextures.Add(textures.FaceTextures[i].TextureID);
{
if (textures.FaceTextures[i].TextureID != null)
allTextures.Add(textures.FaceTextures[i].TextureID);
if (textures.FaceTextures[i].MaterialID != null)
allTextures.Add(textures.FaceTextures[i].MaterialID);
}
}
//Convert texture uuid list to inventar items.