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:
authorTon Roosendaal <ton@blender.org>2008-12-19 21:28:37 +0300
committerTon Roosendaal <ton@blender.org>2008-12-19 21:28:37 +0300
commita3d3619898f541b989bedca67ffc8592892ac4dc (patch)
tree44d35c7e95d80885bb731abf3c566e6be7cdcea7 /source/blender/windowmanager/intern/wm_files.c
parent7729ddd4240f49c58fc397f570a4b817d64b7733 (diff)
2.5
- CTRL+O "open recent file" is back. Need it for testing :) - Added a simple WM_error() to replace old error()
Diffstat (limited to 'source/blender/windowmanager/intern/wm_files.c')
-rw-r--r--source/blender/windowmanager/intern/wm_files.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c
index baaba13a5dc..00297a56167 100644
--- a/source/blender/windowmanager/intern/wm_files.c
+++ b/source/blender/windowmanager/intern/wm_files.c
@@ -481,6 +481,7 @@ void WM_read_file(bContext *C, char *name)
/* first try to append data from exotic file formats... */
/* it throws error box when file doesnt exist and returns -1 */
+ /* note; it should set some error message somewhere... (ton) */
retval= BKE_read_exotic(name);
/* we didn't succeed, now try to read Blender file */
@@ -513,6 +514,8 @@ void WM_read_file(bContext *C, char *name)
}
// else if(retval==1)
// XXX BIF_undo_push("Import file");
+ else if(retval == -1)
+ WM_error(C, "Cannot read file");
}
static void outliner_242_patch(void)