Fix #35773: Drag-to-Open failed in Movie Clip Editor

This commit is contained in:
Sergey Sharybin
2013-06-19 08:45:02 +00:00
parent 26fe036b6e
commit c63c6e4452

View File

@@ -807,7 +807,7 @@ static int clip_context(const bContext *C, const char *member, bContextDataResul
static int clip_drop_poll(bContext *UNUSED(C), wmDrag *drag, const wmEvent *UNUSED(event))
{
if (drag->type == WM_DRAG_PATH)
if (ELEM3(drag->icon, 0, ICON_FILE_IMAGE, ICON_FILE_BLANK)) /* rule might not work? */
if (ELEM4(drag->icon, 0, ICON_FILE_IMAGE, ICON_FILE_MOVIE, ICON_FILE_BLANK)) /* rule might not work? */
return TRUE;
return FALSE;