In materials module, if a texture entry somehow has no default entry then don't try to extract materials data rather than throw an exception

0.8.0.3
Justin Clark-Casey (justincc) 2014-06-16 21:47:34 +01:00 committed by Justin Clark-Casey
parent 2cdef143c4
commit 76ee671dc6
1 changed files with 2 additions and 1 deletions

View File

@ -216,7 +216,8 @@ namespace OpenSim.Region.OptionalModules.Materials
GetLegacyStoredMaterialsInPart(part);
GetStoredMaterialInFace(part, te.DefaultTexture);
if (te.DefaultTexture != null)
GetStoredMaterialInFace(part, te.DefaultTexture);
foreach (Primitive.TextureEntryFace face in te.FaceTextures)
{