SetTexture_fix

0.7.1-dev
unknown 2011-01-31 02:42:22 -05:00 committed by Justin Clark-Casey (justincc)
parent 456cdee5ce
commit 3585130ac8
1 changed files with 6 additions and 7 deletions

View File

@ -1750,13 +1750,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
{
UUID textureID=new UUID();
if (!UUID.TryParse(texture, out textureID))
{
textureID=InventoryKey(texture, (int)AssetType.Texture);
}
if (textureID == UUID.Zero)
{
if (!UUID.TryParse(texture, out textureID))
return;
}
Primitive.TextureEntry tex = part.Shape.Textures;