diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-09-06 18:35:16 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-09-06 18:35:16 +0300 |
commit | 90ea5c543aa7e091ae21aac6b8d87c97c3aa0464 (patch) | |
tree | 80e8c351e8f1c2abe7d8e6d7e2cc8340ade89a93 | |
parent | 310e396b516f25530ca4f9883a73628de59267b4 (diff) |
Fix T56643: crash drag & dropping ID onto a text field.
-rw-r--r-- | source/blender/editors/interface/interface_handlers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c index 00828bd0fdf..a0126b0c069 100644 --- a/source/blender/editors/interface/interface_handlers.c +++ b/source/blender/editors/interface/interface_handlers.c @@ -2017,7 +2017,7 @@ static void ui_but_drop(bContext *C, const wmEvent *event, uiBut *but, uiHandleB if (wmd->type == WM_DRAG_ID) { /* align these types with UI_but_active_drop_name */ if (ELEM(but->type, UI_BTYPE_TEXT, UI_BTYPE_SEARCH_MENU)) { - ID *id = (ID *)wmd->poin; + ID *id = WM_drag_ID(wmd, 0); button_activate_state(C, but, BUTTON_STATE_TEXT_EDITING); |