add MaterialID
parent
61cb8c2e85
commit
b4def9d65d
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue