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:
authorWilliam Reynish <william@reynish.com>2010-05-09 22:07:17 +0400
committerWilliam Reynish <william@reynish.com>2010-05-09 22:07:17 +0400
commit95bb364bda806a3d28ae45e2fddfc87842e9234c (patch)
tree03fc0981c65ad9423748f29784a04ae4982049ff /source/blender/editors/space_sequencer/space_sequencer.c
parent6d8cb93f71b5fb3b0d1638378e0cd56696337cbe (diff)
***Drag and drop fun!***
Added ability to drag images and movies directly onto objects to assign them as textures. You can drag them from the file browser, directly from the OS or even from other apps. Here's a video to demonstrate: http://www.youtube.com/watch?v=fGe2U8F_JvE Ton wanted to show me how to add it, but he ended up doing almost all of the coding himself ;) Ton/Matt: Dropping a text file in the Text Editor fails for some reason. It aught to work - probably a keymap conflict of some sorts?
Diffstat (limited to 'source/blender/editors/space_sequencer/space_sequencer.c')
-rw-r--r--source/blender/editors/space_sequencer/space_sequencer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_sequencer/space_sequencer.c b/source/blender/editors/space_sequencer/space_sequencer.c
index 073743976e8..b19e8652f7f 100644
--- a/source/blender/editors/space_sequencer/space_sequencer.c
+++ b/source/blender/editors/space_sequencer/space_sequencer.c
@@ -306,7 +306,7 @@ static int image_drop_poll(bContext *C, wmDrag *drag, wmEvent *event)
static int movie_drop_poll(bContext *C, wmDrag *drag, wmEvent *event)
{
if(drag->type==WM_DRAG_PATH)
- if(ELEM(drag->icon, ICON_FILE_MOVIE, ICON_FILE_BLANK)) /* rule might not work? */
+ if(ELEM3(drag->icon, 0, ICON_FILE_MOVIE, ICON_FILE_BLANK)) /* rule might not work? */
return 1;
return 0;
}