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

@ -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);
}
} }
} }