diff options
author | Alexander Ewering <blender@instinctive.de> | 2006-11-18 04:45:47 +0300 |
---|---|---|
committer | Alexander Ewering <blender@instinctive.de> | 2006-11-18 04:45:47 +0300 |
commit | a94925809be8230c40c3d6c0666aa3c58349a2d8 (patch) | |
tree | eaada55a7e0fdb865cf6f17ea07f916bc32261c5 /source/blender/python/api2_2x/sceneRender.c | |
parent | 41cb8f15eaf8a8db4d2a32a25d3c1c41bff8addd (diff) |
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 :)
Diffstat (limited to 'source/blender/python/api2_2x/sceneRender.c')
-rw-r--r-- | source/blender/python/api2_2x/sceneRender.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/sceneRender.c b/source/blender/python/api2_2x/sceneRender.c index 8ef3c09ab00..de5dd1c5f1e 100644 --- a/source/blender/python/api2_2x/sceneRender.c +++ b/source/blender/python/api2_2x/sceneRender.c @@ -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 |