diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-07-09 14:13:09 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-07-09 14:13:09 +0400 |
commit | 838886daf35b791d24e18e3f039a7f9c3c8332e4 (patch) | |
tree | 4cd6124efe56c75391436edc1261abaae113e5f5 | |
parent | 60d099648c05ac469e3499e9755477c5180b9721 (diff) |
Fix for bugfix #12075: gamma node check for nan was always
checking red channel.
-rw-r--r-- | source/blender/nodes/intern/CMP_nodes/CMP_gamma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/nodes/intern/CMP_nodes/CMP_gamma.c b/source/blender/nodes/intern/CMP_nodes/CMP_gamma.c index ff9e2b716ce..e77de3726cb 100644 --- a/source/blender/nodes/intern/CMP_nodes/CMP_gamma.c +++ b/source/blender/nodes/intern/CMP_nodes/CMP_gamma.c @@ -47,7 +47,7 @@ static void do_gamma(bNode *node, float *out, float *in, float *fac) int i=0; for(i=0; i<3; i++) { /* check for negative to avoid nan's */ - out[i] = (in[0] > 0.0f)? pow(in[i],fac[0]): in[0]; + out[i] = (in[i] > 0.0f)? pow(in[i],fac[0]): in[i]; } out[3] = in[3]; } |