Fix [#20628] Color pickers: graphical slider bar doesn't update HSV and
authorMatt Ebb <matt@mke3.net>
Tue, 12 Jan 2010 02:34:57 +0000 (02:34 +0000)
committerMatt Ebb <matt@mke3.net>
Tue, 12 Jan 2010 02:34:57 +0000 (02:34 +0000)
 Hex num sliders

source/blender/editors/interface/interface_regions.c

index 03422df9ba52e5d02fe775e85c7ca2f4811cc932..90823481f18e486abfbfd46c0cfe2a3ee5bf7c50 100644 (file)
@@ -1698,7 +1698,7 @@ static void circle_picker(uiBlock *block, PointerRNA *ptr, const char *propname)
        uiButSetFunc(bt, do_picker_rna_cb, bt, NULL);
        
        /* value */
-       uiDefButR(block, HSVCUBE, 0, "", PICKER_W+PICKER_SPACE,0,PICKER_BAR,PICKER_H, ptr, propname, -1, 0.0, 0.0, 9, 0, "");
+       bt= uiDefButR(block, HSVCUBE, 0, "", PICKER_W+PICKER_SPACE,0,PICKER_BAR,PICKER_H, ptr, propname, -1, 0.0, 0.0, 9, 0, "");
        uiButSetFunc(bt, do_picker_rna_cb, bt, NULL);
 }
 
@@ -1713,7 +1713,7 @@ static void square_picker(uiBlock *block, PointerRNA *ptr, const char *propname,
        uiButSetFunc(bt, do_picker_rna_cb, bt, NULL);
        
        /* value */
-       uiDefButR(block, HSVCUBE, 0, "",                0, 0, PICKER_TOTAL_W, PICKER_BAR, ptr, propname, -1, 0.0, 0.0, bartype, 0, "");
+       bt= uiDefButR(block, HSVCUBE, 0, "",            0, 0, PICKER_TOTAL_W, PICKER_BAR, ptr, propname, -1, 0.0, 0.0, bartype, 0, "");
        uiButSetFunc(bt, do_picker_rna_cb, bt, NULL);
 }