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

bullet-2.82
Justin Clark-Casey (justincc) 2014-06-16 22:20:30 +01:00
parent 4374ce9fbf
commit b59812b4e3
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)
{