aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs17
1 files changed, 16 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 9feed38..4acfc76 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -2116,11 +2116,26 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2116 { 2116 {
2117 face = 0; 2117 face = 0;
2118 } 2118 }
2119
2119 if (face >= 0 && face < GetNumberOfSides(part)) 2120 if (face >= 0 && face < GetNumberOfSides(part))
2120 { 2121 {
2121 Primitive.TextureEntryFace texface; 2122 Primitive.TextureEntryFace texface;
2122 texface = tex.GetFace((uint)face); 2123 texface = tex.GetFace((uint)face);
2123 return texface.TextureID.ToString(); 2124 string texture = texface.TextureID.ToString();
2125
2126 lock (part.TaskInventory)
2127 {
2128 foreach (KeyValuePair<UUID, TaskInventoryItem> inv in part.TaskInventory)
2129 {
2130 if (inv.Value.AssetID == texface.TextureID)
2131 {
2132 texture = inv.Value.Name.ToString();
2133 break;
2134 }
2135 }
2136 }
2137
2138 return texture;
2124 } 2139 }
2125 else 2140 else
2126 { 2141 {