delay texture entry parsing until absolutely necessary while converting legacy materials
parent
28723beb0c
commit
95c926b2cd
|
@ -159,10 +159,6 @@ namespace OpenSim.Region.OptionalModules.Materials
|
||||||
if (part.DynAttrs == null)
|
if (part.DynAttrs == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var te = new Primitive.TextureEntry(part.Shape.TextureEntry, 0, part.Shape.TextureEntry.Length);
|
|
||||||
if (te == null)
|
|
||||||
return;
|
|
||||||
|
|
||||||
OSD OSMaterials = null;
|
OSD OSMaterials = null;
|
||||||
OSDArray matsArr = null;
|
OSDArray matsArr = null;
|
||||||
|
|
||||||
|
@ -187,6 +183,10 @@ namespace OpenSim.Region.OptionalModules.Materials
|
||||||
if (matsArr == null)
|
if (matsArr == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
var te = new Primitive.TextureEntry(part.Shape.TextureEntry, 0, part.Shape.TextureEntry.Length);
|
||||||
|
if (te == null)
|
||||||
|
return;
|
||||||
|
|
||||||
foreach (OSD elemOsd in matsArr)
|
foreach (OSD elemOsd in matsArr)
|
||||||
{
|
{
|
||||||
if (elemOsd != null && elemOsd is OSDMap)
|
if (elemOsd != null && elemOsd is OSDMap)
|
||||||
|
|
Loading…
Reference in New Issue