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
Justin Clark-Casey (justincc) 2011-02-04 21:55:22 +00:00
parent 3585130ac8
commit bc2e254b55
1 changed files with 7 additions and 7 deletions

View File

@ -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;