Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2006-07-11 15:54:59 +0400
committerTon Roosendaal <ton@blender.org>2006-07-11 15:54:59 +0400
commitfede9f9be3ef59d718b92e301595c77d37d3e34f (patch)
treecf372bfe7857581c18a05fc5c991fd15685a9555 /source/blender/src/buttons_scene.c
parentf9461c843596e24b5ac59ed0e0d129f65743d1c7 (diff)
Bugfix #4663
Play option: if you set output to render to .avi, but in the same directory also individual files exist, it always played the files, not the movie. Now it checks for the Output type, and plays back a movie or frames, as indicated.
Diffstat (limited to 'source/blender/src/buttons_scene.c')
-rw-r--r--source/blender/src/buttons_scene.c31
1 files changed, 17 insertions, 14 deletions
diff --git a/source/blender/src/buttons_scene.c b/source/blender/src/buttons_scene.c
index 26c3cceed7d..9d9783f96b5 100644
--- a/source/blender/src/buttons_scene.c
+++ b/source/blender/src/buttons_scene.c
@@ -490,24 +490,27 @@ static void run_playanim(char *file)
void playback_anim(void)
{
char file[FILE_MAXDIR+FILE_MAXFILE];
-
- switch (G.scene->r.imtype) {
+
+ if(BKE_imtype_is_movie(G.scene->r.imtype)) {
+ switch (G.scene->r.imtype) {
#ifdef WITH_QUICKTIME
- case R_QUICKTIME:
- makeqtstring(file);
- break;
+ case R_QUICKTIME:
+ makeqtstring(file);
+ break;
#endif
#ifdef WITH_FFMPEG
- case R_FFMPEG:
- makeffmpegstring(file);
- break;
+ case R_FFMPEG:
+ makeffmpegstring(file);
+ break;
#endif
- default:
- makeavistring(&G.scene->r, file);
- break;
- }
- if(BLI_exist(file)) {
- run_playanim(file);
+ default:
+ makeavistring(&G.scene->r, file);
+ break;
+ }
+ if(BLI_exist(file)) {
+ run_playanim(file);
+ }
+ else error("Can't find movie: %s", file);
}
else {
BKE_makepicstring(file, G.scene->r.sfra);