mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 19:36:07 +08:00
delay texture entry parsing until absolutely necessary while converting legacy materials
This commit is contained in:
@@ -159,10 +159,6 @@ namespace OpenSim.Region.OptionalModules.Materials
|
||||
if (part.DynAttrs == null)
|
||||
return;
|
||||
|
||||
var te = new Primitive.TextureEntry(part.Shape.TextureEntry, 0, part.Shape.TextureEntry.Length);
|
||||
if (te == null)
|
||||
return;
|
||||
|
||||
OSD OSMaterials = null;
|
||||
OSDArray matsArr = null;
|
||||
|
||||
@@ -187,6 +183,10 @@ namespace OpenSim.Region.OptionalModules.Materials
|
||||
if (matsArr == null)
|
||||
return;
|
||||
|
||||
var te = new Primitive.TextureEntry(part.Shape.TextureEntry, 0, part.Shape.TextureEntry.Length);
|
||||
if (te == null)
|
||||
return;
|
||||
|
||||
foreach (OSD elemOsd in matsArr)
|
||||
{
|
||||
if (elemOsd != null && elemOsd is OSDMap)
|
||||
|
||||
Reference in New Issue
Block a user