From c2bbd919ea200f4af1ed3b27b056f841e44ce02b Mon Sep 17 00:00:00 2001 From: Christopher Date: Sun, 28 Jun 2020 15:11:07 +0200 Subject: [PATCH] get all textures --- src/TextureFetcher.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/TextureFetcher.cs b/src/TextureFetcher.cs index bf904d4..8d1d0de 100644 --- a/src/TextureFetcher.cs +++ b/src/TextureFetcher.cs @@ -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) {