fix [#26856] Can't change target object in modifier by Ctrl+V

This commit is contained in:
Campbell Barton 2011-04-11 05:33:43 +00:00
parent 2d1e663440
commit d4d88de2b0

@ -1164,6 +1164,10 @@ static void ui_but_copy_paste(bContext *C, uiBut *but, uiHandleButtonData *data,
else {
button_activate_state(C, but, BUTTON_STATE_TEXT_EDITING);
BLI_strncpy(active_data->str, buf, active_data->maxlen);
if(but->type == SEARCH_MENU) {
/* else uiSearchboxData.active member is not updated [#26856] */
ui_searchbox_update(C, data->searchbox, but, 1);
}
button_activate_state(C, but, BUTTON_STATE_EXIT);
}
}