fix for error pasting into a color button (tried to read its rna index of -1)

This commit is contained in:
Campbell Barton
2013-03-15 20:16:20 +00:00
parent 2d21e6521f
commit 511b181317

View File

@@ -2335,7 +2335,7 @@ static void ui_numedit_begin(uiBut *but, uiHandleButtonData *data)
data->coba = (ColorBand *)but->poin;
but->editcoba = data->coba;
}
else if (ELEM3(but->type, BUT_NORMAL, HSVCUBE, HSVCIRCLE)) {
else if (ELEM4(but->type, BUT_NORMAL, HSVCUBE, HSVCIRCLE, COLOR)) {
ui_get_but_vectorf(but, data->origvec);
copy_v3_v3(data->vec, data->origvec);
but->editvec = data->vec;