diff options
author | Melanie | 2011-10-11 23:22:08 +0100 |
---|---|---|
committer | Melanie | 2011-10-11 23:22:08 +0100 |
commit | 3359bafc3e8e0254e4af430197014e7ecf938c4b (patch) | |
tree | 56f94f588eeddce4493fe525966d02df16f7ae3e | |
parent | Merge commit '34026887feb7ec769d1f9551bcd1ccd9b3b9ea7c' into bigmerge (diff) | |
parent | For llGetTexture(), if the face texture asset is in the inventory, return the... (diff) | |
download | opensim-SC-3359bafc3e8e0254e4af430197014e7ecf938c4b.zip opensim-SC-3359bafc3e8e0254e4af430197014e7ecf938c4b.tar.gz opensim-SC-3359bafc3e8e0254e4af430197014e7ecf938c4b.tar.bz2 opensim-SC-3359bafc3e8e0254e4af430197014e7ecf938c4b.tar.xz |
Merge commit '8a6e6866d9c6c60e4a2e4b980ca2e35ae3963d0d' into bigmerge
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 17 |
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 | { |