diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index b6d8d0ebe0..dcc92cc3ea 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);