Uncommitted my potential fix for

http://projects.blender.org/tracker/index.php?func=detail&aid=4786&group_id=9&atid=125

It seems like you can't quote the executable path on win32 using system().

So, playing back a rendered animation now works again on win32, however,
the bug remains... no idea how to correct it.
This commit is contained in:
Alexander Ewering
2006-11-25 14:53:31 +00:00
parent cadb47b415
commit 314b7adc17
4 changed files with 5 additions and 5 deletions

View File

@@ -514,14 +514,14 @@ PyObject *RenderData_Play( BPy_RenderData * self )
}
if( BLI_exist( file ) ) {
calc_renderwin_rectangle(640, 480, G.winpos, pos, size);
sprintf( str, "\"%s\" -a -p %d %d \"%s\"", bprogname, pos[0],
sprintf( str, "%s -a -p %d %d \"%s\"", bprogname, pos[0],
pos[1], file );
system( str );
} else {
BKE_makepicstring( file, G.scene->r.pic, self->renderContext->sfra, G.scene->r.imtype);
if( BLI_exist( file ) ) {
calc_renderwin_rectangle(640, 480, G.winpos, pos, size);
sprintf( str, "\"%s\" -a -p %d %d \"%s\"", bprogname,
sprintf( str, "%s -a -p %d %d \"%s\"", bprogname,
pos[0], pos[1], file );
system( str );
} else

View File

@@ -499,7 +499,7 @@ static void run_playanim(char *file)
calc_renderwin_rectangle((G.scene->r.xsch*G.scene->r.size)/100,
(G.scene->r.ysch*G.scene->r.size)/100, G.winpos, pos, size);
sprintf(str, "\"%s\" -a -p %d %d \"%s\"", bprogname, pos[0], pos[1], file);
sprintf(str, "%s -a -p %d %d \"%s\"", bprogname, pos[0], pos[1], file);
system(str);
}

View File

@@ -341,7 +341,7 @@ void winqreadimaselspace(ScrArea *sa, void *spacedata, BWinEvent *evt)
if(G.qual & LR_SHIFTKEY) {
extern char bprogname[]; /* usiblender.c */
sprintf(name, "\"%s\" -a \"%s%s\"", bprogname, simasel->dir, simasel->file);
sprintf(name, "%s -a \"%s%s\"", bprogname, simasel->dir, simasel->file);
system(name);
}
if(G.qual & LR_CTRLKEY) {

View File

@@ -2106,7 +2106,7 @@ void winqreadfilespace(ScrArea *sa, void *spacedata, BWinEvent *evt)
if(G.qual & LR_SHIFTKEY) {
extern char bprogname[]; /* usiblender.c */
sprintf(str, "\"%s\" -a \"%s%s\"", bprogname, sfile->dir, sfile->file);
sprintf(str, "%s -a \"%s%s\"", bprogname, sfile->dir, sfile->file);
system(str);
}
else