In pCampBot, don't try and pull down Primitive faces or sculpts set to null
parent
d9b0d7e752
commit
674b521fdd
|
@ -447,17 +447,20 @@ namespace pCampBot
|
||||||
|
|
||||||
for (int i = 0; i < prim.Textures.FaceTextures.Length; i++)
|
for (int i = 0; i < prim.Textures.FaceTextures.Length; i++)
|
||||||
{
|
{
|
||||||
UUID textureID = prim.Textures.FaceTextures[i].TextureID;
|
Primitive.TextureEntryFace face = prim.Textures.FaceTextures[i];
|
||||||
|
|
||||||
if (textureID != UUID.Zero)
|
if (face != null)
|
||||||
GetTexture(textureID);
|
{
|
||||||
|
UUID textureID = prim.Textures.FaceTextures[i].TextureID;
|
||||||
|
|
||||||
|
if (textureID != UUID.Zero)
|
||||||
|
GetTexture(textureID);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (prim.Sculpt.SculptTexture != UUID.Zero)
|
if (prim.Sculpt != null && prim.Sculpt.SculptTexture != UUID.Zero)
|
||||||
{
|
|
||||||
GetTexture(prim.Sculpt.SculptTexture);
|
GetTexture(prim.Sculpt.SculptTexture);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue