fix for error in own recent commit: do not hide alpha in HSV and Hex modes

This commit is contained in:
Sv. Lockal
2012-09-08 19:40:34 +00:00
parent 1a7eb3454e
commit bad06c158e

View File

@@ -2021,8 +2021,8 @@ static void picker_new_hide_reveal(uiBlock *block, short colormode)
/* tag buttons */
for (bt = block->buttons.first; bt; bt = bt->next) {
if (bt->func == do_picker_rna_cb && bt->type == NUMSLI) {
/* RGB sliders (color circle is always shown) */
if (bt->func == do_picker_rna_cb && bt->type == NUMSLI && bt->rnaindex != 3) {
/* RGB sliders (color circle and alpha are always shown) */
if (colormode == 0) bt->flag &= ~UI_HIDDEN;
else bt->flag |= UI_HIDDEN;
}