Fix T40791: Changing path to movie file does not mark the project as changed

This commit is contained in:
Sergey Sharybin 2014-07-07 15:25:32 +06:00
parent 2fe0cf54a5
commit aa620b5fed
Notes: blender-bot 2023-02-14 11:20:29 +01:00
Referenced by issue #40791, Changing path to movie file does not mark the project as changed
1 changed files with 4 additions and 0 deletions

View File

@ -239,6 +239,8 @@ void BUTTONS_OT_file_browse(wmOperatorType *ot)
ot->exec = file_browse_exec;
ot->cancel = file_browse_cancel;
ot->flag |= OPTYPE_UNDO;
/* properties */
WM_operator_properties_filesel(ot, 0, FILE_SPECIAL, FILE_OPENFILE,
WM_FILESEL_FILEPATH | WM_FILESEL_RELPATH, FILE_DEFAULTDISPLAY);
@ -257,6 +259,8 @@ void BUTTONS_OT_directory_browse(wmOperatorType *ot)
ot->exec = file_browse_exec;
ot->cancel = file_browse_cancel;
ot->flag |= OPTYPE_UNDO;
/* properties */
WM_operator_properties_filesel(ot, 0, FILE_SPECIAL, FILE_OPENFILE,
WM_FILESEL_DIRECTORY | WM_FILESEL_RELPATH, FILE_DEFAULTDISPLAY);