From dacaaa547704560487966bf9fea1e59ef283e5bf Mon Sep 17 00:00:00 2001 From: Jan Ivenz Date: Thu, 10 Jul 2014 13:17:05 +0200 Subject: [PATCH] Fixed clamp method in ColorRGBA. --- jme3-core/src/main/java/com/jme3/math/ColorRGBA.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jme3-core/src/main/java/com/jme3/math/ColorRGBA.java b/jme3-core/src/main/java/com/jme3/math/ColorRGBA.java index 563c4195e..f7dd7940f 100644 --- a/jme3-core/src/main/java/com/jme3/math/ColorRGBA.java +++ b/jme3-core/src/main/java/com/jme3/math/ColorRGBA.java @@ -206,10 +206,10 @@ public final class ColorRGBA implements Savable, Cloneable, java.io.Serializable * Saturate that color ensuring all channels have a value between 0 and 1 */ public void clamp() { - FastMath.clamp(r, 0f, 1f); - FastMath.clamp(g, 0f, 1f); - FastMath.clamp(b, 0f, 1f); - FastMath.clamp(a, 0f, 1f); + r = FastMath.clamp(r, 0f, 1f); + g = FastMath.clamp(g, 0f, 1f); + b = FastMath.clamp(b, 0f, 1f); + a = FastMath.clamp(a, 0f, 1f); } /**