fix for error pasting into a color button (tried to read its rna index of -1)
authorCampbell Barton <ideasman42@gmail.com>
Fri, 15 Mar 2013 20:16:20 +0000 (20:16 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 15 Mar 2013 20:16:20 +0000 (20:16 +0000)
source/blender/editors/interface/interface_handlers.c

index abbc9d4a3d66d103b424cab4b0aee2827545832e..9a9e31a32cca23da47e5654a9f44c52181bd8453 100644 (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;