From b281f105c97be482df54229f2d25967d97577425 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Sun, 26 Dec 2010 10:40:50 +0000 Subject: Bugfix [#25383] Drag&Drop .py file into text editor don't load it. --- source/blender/editors/space_text/space_text.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/space_text/space_text.c') diff --git a/source/blender/editors/space_text/space_text.c b/source/blender/editors/space_text/space_text.c index 06346bc89ed..0acdbfb9ccc 100644 --- a/source/blender/editors/space_text/space_text.c +++ b/source/blender/editors/space_text/space_text.c @@ -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; } -- cgit v1.2.3