aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 1159553..0cc8279 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -1160,7 +1160,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1160 if (face > -1) 1160 if (face > -1)
1161 { 1161 {
1162 texcolor = tex.CreateFace((uint)face).RGBA; 1162 texcolor = tex.CreateFace((uint)face).RGBA;
1163 texcolor.A = (float)Math.Abs(alpha - 1); 1163 texcolor.A = (float)Math.Abs(alpha);
1164 tex.FaceTextures[face].RGBA = texcolor; 1164 tex.FaceTextures[face].RGBA = texcolor;
1165 part.UpdateTexture(tex); 1165 part.UpdateTexture(tex);
1166 return; 1166 return;
@@ -1172,12 +1172,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1172 if (tex.FaceTextures[i] != null) 1172 if (tex.FaceTextures[i] != null)
1173 { 1173 {
1174 texcolor = tex.FaceTextures[i].RGBA; 1174 texcolor = tex.FaceTextures[i].RGBA;
1175 texcolor.A = (float)Math.Abs(alpha - 1); 1175 texcolor.A = (float)Math.Abs(alpha);
1176 tex.FaceTextures[i].RGBA = texcolor; 1176 tex.FaceTextures[i].RGBA = texcolor;
1177 } 1177 }
1178 } 1178 }
1179 texcolor = tex.DefaultTexture.RGBA; 1179 texcolor = tex.DefaultTexture.RGBA;
1180 texcolor.A = (float)Math.Abs(alpha - 1); 1180 texcolor.A = (float)Math.Abs(alpha);
1181 tex.DefaultTexture.RGBA = texcolor; 1181 tex.DefaultTexture.RGBA = texcolor;
1182 part.UpdateTexture(tex); 1182 part.UpdateTexture(tex);
1183 return; 1183 return;