If MaterialsModule unexpected sees a part with DefaultTexture of null, log this with a warning.

0.8.0.3
Justin Clark-Casey (justincc) 2014-06-16 22:20:30 +01:00 committed by Justin Clark-Casey
parent 5a1017241f
commit 25757a6abb
1 changed files with 4 additions and 0 deletions

View File

@ -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)
{