From f2de15bffc40c13fade68d815a1e6da44c0cd977 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Mon, 8 Sep 2008 12:30:48 +0000 Subject: Mantis #2144 Adjust XEngine llSetAlpha to a change in the underlying type --- OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 6 +++--- 1 file 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 if (face > -1) { texcolor = tex.CreateFace((uint)face).RGBA; - texcolor.A = (float)Math.Abs(alpha - 1); + texcolor.A = (float)Math.Abs(alpha); tex.FaceTextures[face].RGBA = texcolor; part.UpdateTexture(tex); return; @@ -1172,12 +1172,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api if (tex.FaceTextures[i] != null) { texcolor = tex.FaceTextures[i].RGBA; - texcolor.A = (float)Math.Abs(alpha - 1); + texcolor.A = (float)Math.Abs(alpha); tex.FaceTextures[i].RGBA = texcolor; } } texcolor = tex.DefaultTexture.RGBA; - texcolor.A = (float)Math.Abs(alpha - 1); + texcolor.A = (float)Math.Abs(alpha); tex.DefaultTexture.RGBA = texcolor; part.UpdateTexture(tex); return; -- cgit v1.1