Fix for T39537 wasn't complete, buttons in popups remained unset.

This commit is contained in:
2014-04-03 20:49:40 +11:00
parent d5ce2b5466
commit 51abc2becd

View File

@@ -2378,6 +2378,11 @@ static void ui_textedit_begin(bContext *C, uiBut *but, uiHandleButtonData *data)
data->selextend = 0;
data->selstartx = 0.0f;
#ifdef USE_DRAG_MULTINUM
/* this can happen from multi-drag */
data->applied_interactive = false;
#endif
/* set cursor pos to the end of the text */
but->editstr = data->str;
but->pos = len;