From 5b0a79c7c76d2ddc62ffeec48ccfaf22c5f2bf65 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 23 Oct 2007 21:31:59 +0000 Subject: bug fix, when opening blender with a file (by double clicking or from the command line) - the initial undo state would be set to the default scene. So holding Ctrl+Z would go back to the default .B.blend rather then the file that the user opened. --- source/blender/src/toets.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/src/toets.c') diff --git a/source/blender/src/toets.c b/source/blender/src/toets.c index 6464f699d1a..b174abfa873 100644 --- a/source/blender/src/toets.c +++ b/source/blender/src/toets.c @@ -942,7 +942,7 @@ int blenderqread(unsigned short event, short val) if(textspace==0 && textediting==0) { if(G.qual==LR_CTRLKEY) { if(okee("Erase all")) { - if( BIF_read_homefile(0)==0) error("No file ~/.B.blend"); + if( BIF_read_homefile(0, 1)==0) error("No file ~/.B.blend"); } return 0; } -- cgit v1.2.3