From a0ce28d7312adc31194e2ba34974dc5de754fced Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Fri, 17 Dec 2010 19:05:34 +0000 Subject: Drag & drop feature: You now can drop a .blend inside blender window to open it. Implementation notes: - Added call to extract icon type for files. Code re-used from space_file - External files that get dropped set icon types too. Drop box polls can check for this. - Also enabled setting op-context for drop operators, this was needed to prevent filewindow to open. --- source/blender/editors/include/ED_fileselect.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/editors/include/ED_fileselect.h') diff --git a/source/blender/editors/include/ED_fileselect.h b/source/blender/editors/include/ED_fileselect.h index 5001323cb61..a7d763ca4c8 100644 --- a/source/blender/editors/include/ED_fileselect.h +++ b/source/blender/editors/include/ED_fileselect.h @@ -93,5 +93,7 @@ void ED_fileselect_clear(struct bContext *C, struct SpaceFile *sfile); void ED_fileselect_exit(struct bContext *C, struct SpaceFile *sfile); +int ED_file_extension_icon(char *relname); + #endif /* ED_FILES_H */ -- cgit v1.2.3