diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-07-01 23:28:45 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-07-01 23:28:45 +0400 |
commit | 51fd10a1b580dc91f7ef6172ac859ec5d1dcda6f (patch) | |
tree | 7ed06b308e0713e8403a39dd99021cf0036f3cbf /source/blender/windowmanager/WM_api.h | |
parent | 93bdba9b21d2e7dd860bff486e81dcb0bc9c3377 (diff) |
adding image strips wasnt working, use the 'directory' component of the file selector rather then the full 'filepath' to fix this.
added flags for filename/filepath/directory args to WM_operator_properties_filesel().
Diffstat (limited to 'source/blender/windowmanager/WM_api.h')
-rw-r--r-- | source/blender/windowmanager/WM_api.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/windowmanager/WM_api.h b/source/blender/windowmanager/WM_api.h index dbbe1312f0a..235be838f63 100644 --- a/source/blender/windowmanager/WM_api.h +++ b/source/blender/windowmanager/WM_api.h @@ -234,6 +234,15 @@ void WM_operator_properties_select_all(struct wmOperatorType *ot); #define SEL_DESELECT 2 #define SEL_INVERT 3 + +/* flags for WM_operator_properties_filesel */ +#define WM_FILESEL_RELPATH (1 << 0) + +#define WM_FILESEL_DIRECTORY (1 << 1) +#define WM_FILESEL_FILENAME (1 << 2) +#define WM_FILESEL_FILEPATH (1 << 3) + + /* operator as a python command (resultuing string must be free'd) */ char *WM_operator_pystring(struct bContext *C, struct wmOperatorType *ot, struct PointerRNA *opptr, int all_args); void WM_operator_bl_idname(char *to, const char *from); |