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:
authorCampbell Barton <ideasman42@gmail.com>2007-11-11 18:18:53 +0300
committerCampbell Barton <ideasman42@gmail.com>2007-11-11 18:18:53 +0300
commit3a90b35db8f175e43f5463540287f0ae6b3a2832 (patch)
treef576f47d4cd1c2a5b29b54c869875a1bcf33e418 /source/blender/src/usiblender.c
parentb7d3a8786a3e7d16da892612ea75ae3db56d67dc (diff)
Undoing 'undo' fix 12365, it didn't work the same on mac's, Ton would like to fix the bug himself.
Tree From Curve, - report error when nurbs or poly curves are used. - don't throw errors when >4 branch's per segment are used. also try deal with this better. though no nice solution exists. - default speed is 10x slower then before.
Diffstat (limited to 'source/blender/src/usiblender.c')
-rw-r--r--source/blender/src/usiblender.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/source/blender/src/usiblender.c b/source/blender/src/usiblender.c
index 3efd9d8de9a..c9db00401af 100644
--- a/source/blender/src/usiblender.c
+++ b/source/blender/src/usiblender.c
@@ -490,7 +490,7 @@ static void outliner_242_patch(void)
}
/* only here settings for fullscreen */
-int BIF_read_homefile(int from_memory, int do_undo)
+int BIF_read_homefile(int from_memory)
{
char tstr[FILE_MAXDIR+FILE_MAXFILE], scestr[FILE_MAXDIR];
char *home= BLI_gethome();
@@ -533,9 +533,7 @@ int BIF_read_homefile(int from_memory, int do_undo)
undo_editmode_clear();
BKE_reset_undo();
-
- if (do_undo)
- BIF_undo_push("original");
+ BKE_write_undo("original"); /* save current state */
return success;
}
@@ -905,11 +903,7 @@ void BIF_init(void)
init_node_butfuncs();
BIF_preview_init_dbase();
-
- /* dont set an undo here because this sets the default scene to be the initial
- undo state when loading blender with a file a new file, so holding Ctrl+Z will undo to the default
- scene rather then to the new file */
- BIF_read_homefile(0, 0);
+ BIF_read_homefile(0);
BIF_resources_init(); /* after homefile, to dynamically load an icon file based on theme settings */