From 5cd6f235ce858bd88820784375ef51d27cb039a1 Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Sat, 22 Dec 2007 22:49:37 +0000 Subject: Thank you, Alondria for: Reverts the LSL Texture/Color functions back to the original code, allowing them to function again --- OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectPart.cs') diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index f3be4bd..5398de0 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs @@ -1255,12 +1255,12 @@ namespace OpenSim.Region.Environment.Scenes tex.FaceTextures[i].RGBA = tmpcolor; } } - tmpcolor = tex.FaceTextures[0].RGBA; + 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.FaceTextures[0].RGBA = tmpcolor; + tex.DefaultTexture.RGBA = tmpcolor; UpdateTextureEntry(tex.ToBytes()); } -- cgit v1.1