minor: fix indentation, spacing on commit 3585130
this previous commit tries to look up the texture by name first before just using the uuid. this allows correct resolution of inventory textures which have uuids as names.0.7.1-dev
parent
3585130ac8
commit
bc2e254b55
|
@ -1748,14 +1748,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
|
||||
protected void SetTexture(SceneObjectPart part, string texture, int face)
|
||||
{
|
||||
UUID textureID=new UUID();
|
||||
UUID textureID = new UUID();
|
||||
|
||||
textureID=InventoryKey(texture, (int)AssetType.Texture);
|
||||
if (textureID == UUID.Zero)
|
||||
{
|
||||
if (!UUID.TryParse(texture, out textureID))
|
||||
return;
|
||||
}
|
||||
textureID = InventoryKey(texture, (int)AssetType.Texture);
|
||||
if (textureID == UUID.Zero)
|
||||
{
|
||||
if (!UUID.TryParse(texture, out textureID))
|
||||
return;
|
||||
}
|
||||
|
||||
Primitive.TextureEntry tex = part.Shape.Textures;
|
||||
|
||||
|
|
Loading…
Reference in New Issue