mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
replace util.clip by utils.clamp (from libomv), and a few more cosmetics
This commit is contained in:
@@ -3807,9 +3807,9 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
/// <param name="alpha"></param>
|
||||
public void SetFaceColorAlpha(int face, Vector3 color, double ?alpha)
|
||||
{
|
||||
Vector3 clippedColor = Util.Clip(color, 0.0f, 1.0f);
|
||||
Vector3 clippedColor = Vector3.Clamp(color, 0.0f, 1.0f);
|
||||
float clippedAlpha = alpha.HasValue ?
|
||||
Util.Clip((float)alpha.Value, 0.0f, 1.0f) : 0;
|
||||
Utils.Clamp((float)alpha.Value, 0.0f, 1.0f) : 0;
|
||||
|
||||
// The only way to get a deep copy/ If we don't do this, we can
|
||||
// never detect color changes further down.
|
||||
|
||||
Reference in New Issue
Block a user