mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
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
This commit is contained in:
@@ -216,7 +216,8 @@ namespace OpenSim.Region.OptionalModules.Materials
|
||||
|
||||
GetLegacyStoredMaterialsInPart(part);
|
||||
|
||||
GetStoredMaterialInFace(part, te.DefaultTexture);
|
||||
if (te.DefaultTexture != null)
|
||||
GetStoredMaterialInFace(part, te.DefaultTexture);
|
||||
|
||||
foreach (Primitive.TextureEntryFace face in te.FaceTextures)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user