Fix T51772: double undo entry for color picker editing.

This commit is contained in:
2017-07-02 21:25:25 +02:00
parent 29c8c50442
commit eb1532a860

View File

@@ -2099,9 +2099,11 @@ static void ui_update_color_picker_buts_rgb(uiBlock *block, ColorPicker *cpicker
continue;
if (bt->rnaprop) {
ui_but_v3_set(bt, rgb);
/* original button that created the color picker already does undo
* push, so disable it on RNA buttons in the color picker block */
UI_but_flag_disable(bt, UI_BUT_UNDO);
}
else if (STREQ(bt->str, "Hex: ")) {
float rgb_gamma[3];