* Patch from Alondria that re-fixes llSetColor
parent
32438ab1b9
commit
d430bc62a9
|
@ -1336,25 +1336,25 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
// info
|
// info
|
||||||
public void UpdateTexture(LLObject.TextureEntry tex)
|
public void UpdateTexture(LLObject.TextureEntry tex)
|
||||||
{
|
{
|
||||||
LLColor tmpcolor;
|
//LLColor tmpcolor;
|
||||||
for (uint i = 0; i < 32; i++)
|
//for (uint i = 0; i < 32; i++)
|
||||||
{
|
//{
|
||||||
if (tex.FaceTextures[i] != null)
|
// if (tex.FaceTextures[i] != null)
|
||||||
{
|
// {
|
||||||
tmpcolor = tex.GetFace((uint) i).RGBA;
|
// tmpcolor = tex.GetFace((uint) i).RGBA;
|
||||||
tmpcolor.A = tmpcolor.A*255;
|
// tmpcolor.A = tmpcolor.A*255;
|
||||||
tmpcolor.R = tmpcolor.R*255;
|
// tmpcolor.R = tmpcolor.R*255;
|
||||||
tmpcolor.G = tmpcolor.G*255;
|
// tmpcolor.G = tmpcolor.G*255;
|
||||||
tmpcolor.B = tmpcolor.B*255;
|
// tmpcolor.B = tmpcolor.B*255;
|
||||||
tex.FaceTextures[i].RGBA = tmpcolor;
|
// tex.FaceTextures[i].RGBA = tmpcolor;
|
||||||
}
|
// }
|
||||||
}
|
//}
|
||||||
tmpcolor = tex.DefaultTexture.RGBA;
|
//tmpcolor = tex.DefaultTexture.RGBA;
|
||||||
tmpcolor.A = tmpcolor.A*255;
|
//tmpcolor.A = tmpcolor.A*255;
|
||||||
tmpcolor.R = tmpcolor.R*255;
|
//tmpcolor.R = tmpcolor.R*255;
|
||||||
tmpcolor.G = tmpcolor.G*255;
|
//tmpcolor.G = tmpcolor.G*255;
|
||||||
tmpcolor.B = tmpcolor.B*255;
|
//tmpcolor.B = tmpcolor.B*255;
|
||||||
tex.DefaultTexture.RGBA = tmpcolor;
|
//tex.DefaultTexture.RGBA = tmpcolor;
|
||||||
UpdateTextureEntry(tex.ToBytes());
|
UpdateTextureEntry(tex.ToBytes());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue