[Bf-blender-cvs] [e47177e] master: Cleanup: redundant code in anim player
Campbell Barton
noreply at git.blender.org
Thu Oct 8 07:07:26 CEST 2015
Commit: e47177e301d104a8b7110e4490bf587c86835bad
Author: Campbell Barton
Date: Thu Oct 8 14:42:25 2015 +1100
Branches: master
https://developer.blender.org/rBe47177e301d104a8b7110e4490bf587c86835bad
Cleanup: redundant code in anim player
Was setting the path to a directory when no file was given -
then checking its a loadable file.
===================================================================
M source/blender/windowmanager/intern/wm_playanim.c
===================================================================
diff --git a/source/blender/windowmanager/intern/wm_playanim.c b/source/blender/windowmanager/intern/wm_playanim.c
index bf30fd8..1c32373 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)) {
More information about the Bf-blender-cvs
mailing list