use GetFace

master
Christopher 2020-06-28 15:33:40 +02:00
parent 4f96158ac3
commit 9b32355f91
1 changed files with 3 additions and 9 deletions

View File

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