get all textures

master
Christopher 2020-06-28 15:11:07 +02:00
parent 3b5f52a4d1
commit c2bbd919ea
1 changed files with 4 additions and 1 deletions

View File

@ -128,7 +128,7 @@ namespace OpenSim.Modules.TextureFetcher
Primitive.TextureEntry textures = part.Shape.Textures;
int allSides = part.GetNumberOfSides();
for (uint i = 0; i < allSides; i++)
for (uint i = 0; i <= allSides; i++)
{
if (textures.FaceTextures[i] != null)
{
@ -140,6 +140,9 @@ namespace OpenSim.Modules.TextureFetcher
}
}
if (part.Shape.SculptTexture != UUID.Zero)
allTextures.Add(part.Shape.SculptTexture);
//Convert texture uuid list to inventar items.
foreach (UUID texture in allTextures)
{