make sure color picker and color swatch buttons have rnaindex of -1.

Some were 0 some -1, but this messed up reporting - making it think that only red was being changed for each button.
This commit is contained in:
2012-12-18 17:00:49 +00:00
parent 27796a34b1
commit 63731453e2
5 changed files with 12 additions and 6 deletions

View File

@@ -2588,6 +2588,8 @@ static void widget_swatch(uiBut *but, uiWidgetColors *wcol, rcti *rect, int stat
col[3] = 1.0f;
if (but->rnaprop) {
BLI_assert(but->rnaindex == -1);
if (RNA_property_subtype(but->rnaprop) == PROP_COLOR_GAMMA)
color_profile = FALSE;