Cleanup: redundant code in anim player

Was setting the path to a directory when no file was given -
then checking its a loadable file.
This commit is contained in:
Campbell Barton
2015-10-08 14:42:25 +11:00
parent 08f61b0fe3
commit e47177e301

View File

@@ -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)) {