From e47177e301d104a8b7110e4490bf587c86835bad Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 8 Oct 2015 14:42:25 +1100 Subject: Cleanup: redundant code in anim player Was setting the path to a directory when no file was given - then checking its a loadable file. --- source/blender/windowmanager/intern/wm_playanim.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source') diff --git a/source/blender/windowmanager/intern/wm_playanim.c b/source/blender/windowmanager/intern/wm_playanim.c index bf30fd83736..1c32373767e 100644 --- a/source/blender/windowmanager/intern/wm_playanim.c +++ b/source/blender/windowmanager/intern/wm_playanim.c @@ -1194,8 +1194,8 @@ static char *wm_main_playanim_intern(int argc, const char **argv) BLI_strncpy(filepath, argv[1], sizeof(filepath)); } else { - BLI_current_working_dir(filepath, sizeof(filepath)); - BLI_add_slash(filepath); + printf("%s: no filepath argument given\n", __func__); + exit(1); } if (IMB_isanim(filepath)) { -- cgit v1.2.3