diff options
author | Joshua Leung <aligorith@gmail.com> | 2010-12-26 13:40:50 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2010-12-26 13:40:50 +0300 |
commit | b281f105c97be482df54229f2d25967d97577425 (patch) | |
tree | be01fedaf2bb53dd5f18be98749d1f2271332f94 /source/blender/editors/space_text/space_text.c | |
parent | d0bdd8cd6461057033e5f80366193a7c10e98e7b (diff) |
Bugfix [#25383] Drag&Drop .py file into text editor don't load it.
Diffstat (limited to 'source/blender/editors/space_text/space_text.c')
-rw-r--r-- | source/blender/editors/space_text/space_text.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |