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
parent
2cdef143c4
commit
76ee671dc6
|
@ -216,7 +216,8 @@ namespace OpenSim.Region.OptionalModules.Materials
|
||||||
|
|
||||||
GetLegacyStoredMaterialsInPart(part);
|
GetLegacyStoredMaterialsInPart(part);
|
||||||
|
|
||||||
GetStoredMaterialInFace(part, te.DefaultTexture);
|
if (te.DefaultTexture != null)
|
||||||
|
GetStoredMaterialInFace(part, te.DefaultTexture);
|
||||||
|
|
||||||
foreach (Primitive.TextureEntryFace face in te.FaceTextures)
|
foreach (Primitive.TextureEntryFace face in te.FaceTextures)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue