use GetFace
parent
4f96158ac3
commit
9b32355f91
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue