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.
This commit is contained in:
Campbell Barton
2007-10-23 21:31:59 +00:00
parent 7fc1297b3c
commit 5b0a79c7c7
6 changed files with 17 additions and 10 deletions

View File

@@ -702,9 +702,10 @@ int main(int argc, char **argv)
sce= add_scene("1");
set_scene(sce);
}
BKE_write_undo("original"); /* save current state */
screenmain();
return 0;
} /* end of int main(argc,argv) */