Revision: 29276
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=29276
Author:   xat
Date:     2010-06-06 18:26:49 +0200 (Sun, 06 Jun 2010)

Log Message:
-----------
Small fix for sample line tool. Set luma data to 0 when out of bounds.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_image/image_ops.c

Modified: trunk/blender/source/blender/editors/space_image/image_ops.c
===================================================================
--- trunk/blender/source/blender/editors/space_image/image_ops.c        
2010-06-06 15:38:50 UTC (rev 29275)
+++ trunk/blender/source/blender/editors/space_image/image_ops.c        
2010-06-06 16:26:49 UTC (rev 29276)
@@ -1705,7 +1705,7 @@
                y= (int)(0.5f + y1 + (float)i*(y2-y1)/255.0f);
                
                if (x<0 || y<0 || x>=ibuf->x || y>=ibuf->y) {
-                       hist->data_r[i] = hist->data_g[i]= hist->data_b[i] = 
0.0f;
+                       hist->data_luma[i] = hist->data_r[i] = hist->data_g[i]= 
hist->data_b[i] = 0.0f;
                } else {
                        if (ibuf->rect_float) {
                                fp= (ibuf->rect_float + 
(ibuf->channels)*(y*ibuf->x + x));


_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to