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:
authorWillian Padovani Germano <wpgermano@gmail.com>2007-03-02 21:15:41 +0300
committerWillian Padovani Germano <wpgermano@gmail.com>2007-03-02 21:15:41 +0300
commitcf75e5b78cf197ce24551db2d084be90adecfb78 (patch)
tree5d1dada0cb799cf45ffebe1e3bceff2e1da0d132 /source/blender/src/header_info.c
parentb2acdd69b037b8363dd2c214ccc0a2af691ab017 (diff)
Interface:
Added option "Load Factory Settings" in the "File" menu. With this, users don't have to remove .B.blend if they want to load the default data stored in Blender. Thanks Ton for ok'ing it and suggesting a better place in the menu (I had put it as "New (factory defaults)").
Diffstat (limited to 'source/blender/src/header_info.c')
-rw-r--r--source/blender/src/header_info.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/source/blender/src/header_info.c b/source/blender/src/header_info.c
index be863259bd8..4749d616e70 100644
--- a/source/blender/src/header_info.c
+++ b/source/blender/src/header_info.c
@@ -828,7 +828,7 @@ static void do_info_filemenu(void *arg, int event)
switch(event) {
case 0:
if (okee("Erase All")) {
- if (!BIF_read_homefile())
+ if (!BIF_read_homefile(0))
error("No file ~/.B.blend");
}
break;
@@ -907,7 +907,12 @@ static void do_info_filemenu(void *arg, int event)
case 31: /* save default settings */
BIF_write_homefile();
break;
-
+ case 32:
+ if (okee("Erase All")) {
+ if (!BIF_read_homefile(1))
+ error("Can't read data from memory!");
+ }
+ break;
case 35: /* compress toggle */
U.flag ^= (USER_FILECOMPRESS);
break;
@@ -996,6 +1001,7 @@ static uiBlock *info_filemenu(void *arg_unused)
uiDefBut(block, SEPR, 0, "", 0, yco-=6, menuwidth, 6, NULL, 0.0, 0.0, 0, 0, "");
uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Save Default Settings|Ctrl U", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 31, "");
+ uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Load Factory Settings", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 32, "");
uiDefBut(block, SEPR, 0, "", 0, yco-=6, menuwidth, 6, NULL, 0.0, 0.0, 0, 0, "");