fix for 'Playanim' playing past the last frame of an animation. also print -s and...
authorCampbell Barton <ideasman42@gmail.com>
Sat, 17 Nov 2012 01:15:28 +0000 (01:15 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 17 Nov 2012 01:15:28 +0000 (01:15 +0000)
release/scripts/startup/bl_operators/screen_play_rendered_anim.py
source/blender/windowmanager/intern/wm_playanim.c
source/creator/creator.c

index 694412e51d7a7adbdeda6d0336af1f73f908fdfc..6d1f35fe9375bc725df5f57c002ef3d1c43c1c32 100644 (file)
@@ -116,8 +116,12 @@ class PlayRenderedAnim(Operator):
         cmd = [player_path]
         # extra options, fps controls etc.
         if preset in {'BLENDER24', 'INTERNAL'}:
-            opts = ["-a", "-f", str(rd.fps), str(rd.fps_base),
-                    "-j", str(scene.frame_step), file]
+            opts = ["-a",
+                    "-f", str(rd.fps), str(rd.fps_base),
+                    "-s", str(scene.frame_start),
+                    "-e", str(scene.frame_end),
+                    "-j", str(scene.frame_step),
+                    file]
             cmd.extend(opts)
         elif preset == 'DJV':
             opts = [file, "-playback_speed", "%d" % int(rd.fps / rd.fps_base)]
index fba45065fbe8e6c0bda255e77564fc4775cccb8f..008768dc18e7b51b09531de70b7337c0f3ad65e0 100644 (file)
@@ -235,7 +235,7 @@ static void playanim_toscreen(PlayAnimPict *picture, struct ImBuf *ibuf, int fon
 {
 
        if (ibuf == NULL) {
-               printf("no ibuf !\n");
+               printf("%s: no ibuf for picture '%s'\n", __func__, picture ? picture->name : "<NIL>");
                return;
        }
        if (ibuf->rect == NULL && ibuf->rect_float) {
index fc2f555227f4b6c3f9ebf8284d62b81c04d5f205..ff67fe09896e8073a813a48485bdda91bf8f7ba4 100644 (file)
@@ -1077,7 +1077,9 @@ static void setupArguments(bContext *C, bArgs *ba, SYS_SystemHandle *syshandle)
                "\n\t\t-p <sx> <sy>\tOpen with lower left corner at <sx>, <sy>"
                "\n\t\t-m\t\tRead from disk (Don't buffer)"
                "\n\t\t-f <fps> <fps-base>\t\tSpecify FPS to start with"
-               "\n\t\t-j <frame>\tSet frame step to <frame>";
+               "\n\t\t-j <frame>\tSet frame step to <frame>"
+               "\n\t\t-s <frame>\tPlay from <frame>"
+               "\n\t\t-j <frame>\tPlay until <frame>";
 
        static char game_doc[] = "Game Engine specific options"
                "\n\t-g fixedtime\t\tRun on 50 hertz without dropping frames"