From d430bc62a9b07d3cf1d3294c301f9681467ef30c Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Sun, 30 Dec 2007 07:06:14 +0000 Subject: * Patch from Alondria that re-fixes llSetColor --- .../Region/Environment/Scenes/SceneObjectPart.cs | 40 +++++++++++----------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index d35cb76..e211b66 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs @@ -1336,25 +1336,25 @@ namespace OpenSim.Region.Environment.Scenes // info public void UpdateTexture(LLObject.TextureEntry tex) { - LLColor tmpcolor; - for (uint i = 0; i < 32; i++) - { - if (tex.FaceTextures[i] != null) - { - tmpcolor = tex.GetFace((uint) i).RGBA; - tmpcolor.A = tmpcolor.A*255; - tmpcolor.R = tmpcolor.R*255; - tmpcolor.G = tmpcolor.G*255; - tmpcolor.B = tmpcolor.B*255; - tex.FaceTextures[i].RGBA = tmpcolor; - } - } - tmpcolor = tex.DefaultTexture.RGBA; - tmpcolor.A = tmpcolor.A*255; - tmpcolor.R = tmpcolor.R*255; - tmpcolor.G = tmpcolor.G*255; - tmpcolor.B = tmpcolor.B*255; - tex.DefaultTexture.RGBA = tmpcolor; + //LLColor tmpcolor; + //for (uint i = 0; i < 32; i++) + //{ + // if (tex.FaceTextures[i] != null) + // { + // tmpcolor = tex.GetFace((uint) i).RGBA; + // tmpcolor.A = tmpcolor.A*255; + // tmpcolor.R = tmpcolor.R*255; + // tmpcolor.G = tmpcolor.G*255; + // tmpcolor.B = tmpcolor.B*255; + // tex.FaceTextures[i].RGBA = tmpcolor; + // } + //} + //tmpcolor = tex.DefaultTexture.RGBA; + //tmpcolor.A = tmpcolor.A*255; + //tmpcolor.R = tmpcolor.R*255; + //tmpcolor.G = tmpcolor.G*255; + //tmpcolor.B = tmpcolor.B*255; + //tex.DefaultTexture.RGBA = tmpcolor; UpdateTextureEntry(tex.ToBytes()); } @@ -1735,4 +1735,4 @@ namespace OpenSim.Region.Environment.Scenes } } } -} \ No newline at end of file +} -- cgit v1.1