From 25757a6abb6f058435d14769966d4395be586e4f Mon Sep 17 00:00:00 2001 From: "Justin Clark-Casey (justincc)" Date: Mon, 16 Jun 2014 22:20:30 +0100 Subject: [PATCH] If MaterialsModule unexpected sees a part with DefaultTexture of null, log this with a warning. --- OpenSim/Region/OptionalModules/Materials/MaterialsModule.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/OpenSim/Region/OptionalModules/Materials/MaterialsModule.cs b/OpenSim/Region/OptionalModules/Materials/MaterialsModule.cs index 5202bbc8c9..7b2a34d239 100644 --- a/OpenSim/Region/OptionalModules/Materials/MaterialsModule.cs +++ b/OpenSim/Region/OptionalModules/Materials/MaterialsModule.cs @@ -218,6 +218,10 @@ namespace OpenSim.Region.OptionalModules.Materials if (te.DefaultTexture != null) GetStoredMaterialInFace(part, te.DefaultTexture); + else + m_log.WarnFormat( + "[Materials]: Default texture for part {0} (part of object {1)) in {2} unexpectedly null. Ignoring.", + part.Name, part.ParentGroup.Name, m_scene.Name); foreach (Primitive.TextureEntryFace face in te.FaceTextures) {