* Changed the constant colorband interpolation to work left->right,
authorMatt Ebb <matt@mke3.net>
Tue, 4 Nov 2008 22:16:57 +0000 (22:16 +0000)
committerMatt Ebb <matt@mke3.net>
Tue, 4 Nov 2008 22:16:57 +0000 (22:16 +0000)
 rather than right -> left. This is how it works now:

http://mke3.net/blender/etc/constant_ss.png

source/blender/blenkernel/intern/texture.c

index 183f94c1517c3d4f126aa4fd945193f4bd055dbd..ab9e6f9af415c33d5569a459b9369a6eb16c4986 100644 (file)
@@ -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;
                                }