Another pointless multiplication/division removed
parent
1160731100
commit
bf0b7eaecb
|
@ -1187,12 +1187,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
int i;
|
int i;
|
||||||
double sum = 0.0;
|
double sum = 0.0;
|
||||||
for (i = 0 ; i < GetNumberOfSides(part) ; i++)
|
for (i = 0 ; i < GetNumberOfSides(part) ; i++)
|
||||||
sum += (double)((tex.GetFace((uint)i).RGBA.A * 255) / 255);
|
sum += (double)tex.GetFace((uint)i).RGBA.A;
|
||||||
return sum;
|
return sum;
|
||||||
}
|
}
|
||||||
if (face >= 0 && face < GetNumberOfSides(part))
|
if (face >= 0 && face < GetNumberOfSides(part))
|
||||||
{
|
{
|
||||||
return (double)((tex.GetFace((uint)face).RGBA.A * 255) / 255);
|
return (double)tex.GetFace((uint)face).RGBA.A;
|
||||||
}
|
}
|
||||||
return 0.0;
|
return 0.0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue