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,9 +116,17 @@ namespace OpenSim.Modules.TextureFetcher
Primitive.TextureEntry textures = part.Shape.Textures; Primitive.TextureEntry textures = part.Shape.Textures;
int allSides = part.GetNumberOfSides(); int allSides = part.GetNumberOfSides();
for (uint i = 0; i < allSides; i++) for (uint i = 0; i < allSides; i++)
{
if (textures.FaceTextures[i] != null) if (textures.FaceTextures[i] != null)
{
if (textures.FaceTextures[i].TextureID != null)
allTextures.Add(textures.FaceTextures[i].TextureID); 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. //Convert texture uuid list to inventar items.
foreach (UUID texture in allTextures) foreach (UUID texture in allTextures)