Bugfix for:

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

If the path to Blender contained whitespace, various places which called
the Blender executable wouldn't run. Now the path to the executable
should be quoted correctly everywhere.

If this breaks anything on other platforms, please shout :)
This commit is contained in:
Alexander Ewering
2006-11-18 01:45:47 +00:00
parent 41cb8f15ea
commit a94925809b
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