Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Ebb <matt@mke3.net>2008-11-05 01:16:57 +0300
committerMatt Ebb <matt@mke3.net>2008-11-05 01:16:57 +0300
commita19366f34a7d619492159d7beb5d459abf583a9d (patch)
tree35a192a64a73ef145d5ca3134012016179a0db0d /source/blender/blenkernel
parent91967235810dd02bce311614e9fd49ae415da15f (diff)
* Changed the constant colorband interpolation to work left->right,
rather than right -> left. This is how it works now: http://mke3.net/blender/etc/constant_ss.png
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r--source/blender/blenkernel/intern/texture.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenkernel/intern/texture.c b/source/blender/blenkernel/intern/texture.c
index 183f94c1517..ab9e6f9af41 100644
--- a/source/blender/blenkernel/intern/texture.c
+++ b/source/blender/blenkernel/intern/texture.c
@@ -350,10 +350,10 @@ int do_colorband(ColorBand *coba, float in, float out[4])
if (coba->ipotype==4) {
/* constant */
- out[0]= cbd1->r;
- out[1]= cbd1->g;
- out[2]= cbd1->b;
- out[3]= cbd1->a;
+ out[0]= cbd2->r;
+ out[1]= cbd2->g;
+ out[2]= cbd2->b;
+ out[3]= cbd2->a;
return 1;
}