diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-05-10 08:30:20 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-05-10 08:32:18 +0300 |
commit | 2f61602497aa4e0a130b08364458c5c67bd188ef (patch) | |
tree | 8b446c42c38222996f897ce635fe79970f16137b /source/creator | |
parent | d800470ac2283aed4e81647a06335ac5d1067887 (diff) |
Cleanup: correct/clarify PlayAnim comments
Diffstat (limited to 'source/creator')
-rw-r--r-- | source/creator/creator_args.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/creator/creator_args.c b/source/creator/creator_args.c index 9c7b7dc3f34..36fdaef507b 100644 --- a/source/creator/creator_args.c +++ b/source/creator/creator_args.c @@ -1195,15 +1195,17 @@ static const char arg_handle_playback_mode_doc[] = "\t\tZero disables (clamping to a fixed number of frames instead)."; static int arg_handle_playback_mode(int argc, const char **argv, void *UNUSED(data)) { - /* not if -b was given first */ + /* Ignore the animation player if `-b` was given first. */ if (G.background == 0) { # ifdef WITH_FFMPEG /* Setup FFmpeg with current debug flags. */ IMB_ffmpeg_init(); # endif - WM_main_playanim(argc, argv); /* not the same argc and argv as before */ - exit(0); /* 2.4x didn't do this */ + /* This function knows to skip this argument ('-a'). */ + WM_main_playanim(argc, argv); + + exit(0); } return -2; |