diff options
author | Andrea Weikert <elubie@gmx.net> | 2007-01-20 11:01:56 +0300 |
---|---|---|
committer | Andrea Weikert <elubie@gmx.net> | 2007-01-20 11:01:56 +0300 |
commit | 38375784dfa61b8dd8224fab1530c321fb30bd69 (patch) | |
tree | 92274ed7433eecd712f8da871fb226479ce8a39d /source/blender/src/buttons_scene.c | |
parent | 783a2900a6382ebb3232ab54f66f214a95ab3f92 (diff) |
[ #4786 ] if space in the Application path name, system() doesn't work on some platforms
commited temporary fix: executable name is quoted for all platforms except Windows now,
nicely wrapped in #ifdefs. Will be doing nice wrapper function BLI_system for system calls in blenlib
after release.
Please test on all platforms!
Diffstat (limited to 'source/blender/src/buttons_scene.c')
-rw-r--r-- | source/blender/src/buttons_scene.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/src/buttons_scene.c b/source/blender/src/buttons_scene.c index 0ab4b4b75f9..1711ec7d4fb 100644 --- a/source/blender/src/buttons_scene.c +++ b/source/blender/src/buttons_scene.c @@ -505,8 +505,11 @@ static void run_playanim(char *file) /* use current settings for defining position of window. it actually should test image size */ 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); - +#ifdef WIN32 sprintf(str, "%s -a -p %d %d \"%s\"", bprogname, pos[0], pos[1], file); +#else + sprintf(str, "\"%s\" -a -p %d %d \"%s\"", bprogname, pos[0], pos[1], file); +#endif system(str); } |