diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2010-03-11 23:04:25 +0300 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2010-03-11 23:04:25 +0300 |
commit | 852144225732f0676ccd4cd78606e2a6914d81e4 (patch) | |
tree | f2795f4f5f72f95d8e194d35a6f20e78642caa3c /source/creator | |
parent | 6f4ff64570bcf534c85d8b37da45d20473a0ac6d (diff) | |
parent | d896c1f21f2e6b1f98a1a18dae649c065f9aa06d (diff) |
Merged changes in the trunk up to revision 27420.
Diffstat (limited to 'source/creator')
-rw-r--r-- | source/creator/creator.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c index cb9b76f60af..9afb2e52823 100644 --- a/source/creator/creator.c +++ b/source/creator/creator.c @@ -232,6 +232,9 @@ static int print_help(int argc, char **argv, void *data) printf ("\nMisc options:\n"); printf (" -d\t\tTurn debugging on\n"); + printf (" \t\t * prints every operator call and their arguments\n"); + printf (" \t\t * disables mouse grab (to interact with a debugger in some cases)\n"); + printf (" \t\t * keeps python sys.stdin rather then setting it to None\n"); printf (" -nojoystick\tDisable joystick support\n"); printf (" -noglsl\tDisable GLSL shading\n"); printf (" -noaudio\tForce sound system to None\n"); @@ -775,7 +778,7 @@ static int run_python(int argc, char **argv, void *data) /* Make the path absolute because its needed for relative linked blends to be found */ char filename[FILE_MAXDIR + FILE_MAXFILE]; BLI_strncpy(filename, argv[1], sizeof(filename)); - BLI_convertstringcwd(filename); + BLI_path_cwd(filename); /* workaround for scripts not getting a bpy.context.scene, causes internal errors elsewhere */ if (argc > 1) { @@ -812,7 +815,7 @@ static int load_file(int argc, char **argv, void *data) /* Make the path absolute because its needed for relative linked blends to be found */ char filename[FILE_MAXDIR + FILE_MAXFILE]; BLI_strncpy(filename, argv[0], sizeof(filename)); - BLI_convertstringcwd(filename); + BLI_path_cwd(filename); if (G.background) { int retval = BKE_read_file(C, filename, NULL, NULL); @@ -1043,8 +1046,13 @@ int main(int argc, char **argv) WM_exit(C); } - if(!G.background && !G.file_loaded) - WM_init_splash(C); + else { + if((G.fileflags & G_FILE_AUTOPLAY) && (G.fileflags & G_SCRIPT_AUTOEXEC)) + WM_init_game(C); + + else if(!G.file_loaded) + WM_init_splash(C); + } WM_main(C); |