forked from bartvdbraak/blender
Bugfix [#25383] Drag&Drop .py file into text editor don't load it.
This commit is contained in:
parent
d0bdd8cd64
commit
b281f105c9
@ -407,7 +407,7 @@ static void text_cursor(wmWindow *win, ScrArea *UNUSED(sa), ARegion *UNUSED(ar))
|
||||
static int text_drop_poll(bContext *UNUSED(C), wmDrag *drag, wmEvent *UNUSED(event))
|
||||
{
|
||||
if(drag->type==WM_DRAG_PATH)
|
||||
if(ELEM(drag->icon, 0, ICON_FILE_BLANK)) /* rule might not work? */
|
||||
if(ELEM(drag->icon, ICON_FILE_SCRIPT, ICON_FILE_BLANK)) /* rule might not work? */
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user