In pCampBot, don't try and pull down Primitive faces or sculpts set to null

remove-scene-viewer
Justin Clark-Casey (justincc) 2011-11-09 20:21:48 +00:00
parent d9b0d7e752
commit 674b521fdd
1 changed files with 9 additions and 6 deletions

View File

@ -446,6 +446,10 @@ namespace pCampBot
} }
for (int i = 0; i < prim.Textures.FaceTextures.Length; i++) for (int i = 0; i < prim.Textures.FaceTextures.Length; i++)
{
Primitive.TextureEntryFace face = prim.Textures.FaceTextures[i];
if (face != null)
{ {
UUID textureID = prim.Textures.FaceTextures[i].TextureID; UUID textureID = prim.Textures.FaceTextures[i].TextureID;
@ -453,11 +457,10 @@ namespace pCampBot
GetTexture(textureID); GetTexture(textureID);
} }
} }
if (prim.Sculpt.SculptTexture != UUID.Zero)
{
GetTexture(prim.Sculpt.SculptTexture);
} }
if (prim.Sculpt != null && prim.Sculpt.SculptTexture != UUID.Zero)
GetTexture(prim.Sculpt.SculptTexture);
} }
} }