From 5cccd4f6e53789fe00d123af8d90a56871de2d8f Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Sat, 14 Jun 2008 20:33:03 +0000 Subject: * Vintage 2, a good year. --- OpenSim/Region/Environment/Scenes/Scene.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index b6d8d0e..dcc92cc 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs @@ -1170,10 +1170,6 @@ namespace OpenSim.Region.Environment.Scenes // try { - LLColor texcolor = part.Shape.Textures.DefaultTexture.RGBA; - - // Not sure why some of these are null, oh well. - if (part == null) continue; @@ -1186,6 +1182,12 @@ namespace OpenSim.Region.Environment.Scenes if (part.Shape.Textures.DefaultTexture == null) continue; + LLColor texcolor = part.Shape.Textures.DefaultTexture.RGBA; + + // Not sure why some of these are null, oh well. + + + int colorr = 255 - (int)(texcolor.R * 255f); -- cgit v1.1