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:
@@ -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
|
||||
|
Reference in New Issue
Block a user