Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2010-12-26 13:40:50 +0300
committerJoshua Leung <aligorith@gmail.com>2010-12-26 13:40:50 +0300
commitb281f105c97be482df54229f2d25967d97577425 (patch)
treebe01fedaf2bb53dd5f18be98749d1f2271332f94
parentd0bdd8cd6461057033e5f80366193a7c10e98e7b (diff)
Bugfix [#25383] Drag&Drop .py file into text editor don't load it.
-rw-r--r--source/blender/editors/space_text/space_text.c2
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;
}