diff options
author | Justin Clark-Casey (justincc) | 2014-06-16 22:20:30 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2014-06-16 22:20:30 +0100 |
commit | b59812b4e37feff091495b4ca0537dede82b687e (patch) | |
tree | bc4a4afd15f0d6524f34633196918ce3d5aeee85 | |
parent | If processing a queued request fails up to the top of the stack, log the exce... (diff) | |
download | opensim-SC-b59812b4e37feff091495b4ca0537dede82b687e.zip opensim-SC-b59812b4e37feff091495b4ca0537dede82b687e.tar.gz opensim-SC-b59812b4e37feff091495b4ca0537dede82b687e.tar.bz2 opensim-SC-b59812b4e37feff091495b4ca0537dede82b687e.tar.xz |
If MaterialsModule unexpected sees a part with DefaultTexture of null, log this with a warning.
-rw-r--r-- | OpenSim/Region/OptionalModules/Materials/MaterialsModule.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Region/OptionalModules/Materials/MaterialsModule.cs b/OpenSim/Region/OptionalModules/Materials/MaterialsModule.cs index 5202bbc..7b2a34d 100644 --- a/OpenSim/Region/OptionalModules/Materials/MaterialsModule.cs +++ b/OpenSim/Region/OptionalModules/Materials/MaterialsModule.cs | |||
@@ -218,6 +218,10 @@ namespace OpenSim.Region.OptionalModules.Materials | |||
218 | 218 | ||
219 | if (te.DefaultTexture != null) | 219 | if (te.DefaultTexture != null) |
220 | GetStoredMaterialInFace(part, te.DefaultTexture); | 220 | GetStoredMaterialInFace(part, te.DefaultTexture); |
221 | else | ||
222 | m_log.WarnFormat( | ||
223 | "[Materials]: Default texture for part {0} (part of object {1)) in {2} unexpectedly null. Ignoring.", | ||
224 | part.Name, part.ParentGroup.Name, m_scene.Name); | ||
221 | 225 | ||
222 | foreach (Primitive.TextureEntryFace face in te.FaceTextures) | 226 | foreach (Primitive.TextureEntryFace face in te.FaceTextures) |
223 | { | 227 | { |