Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Weikert <elubie@gmx.net>2007-01-20 11:01:56 +0300
committerAndrea Weikert <elubie@gmx.net>2007-01-20 11:01:56 +0300
commit38375784dfa61b8dd8224fab1530c321fb30bd69 (patch)
tree92274ed7433eecd712f8da871fb226479ce8a39d /source/blender/src/editimasel.c
parent783a2900a6382ebb3232ab54f66f214a95ab3f92 (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/editimasel.c')
-rw-r--r--source/blender/src/editimasel.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/src/editimasel.c b/source/blender/src/editimasel.c
index 3d2b3c8b715..f3f9aa31d07 100644
--- a/source/blender/src/editimasel.c
+++ b/source/blender/src/editimasel.c
@@ -340,8 +340,11 @@ void winqreadimaselspace(ScrArea *sa, void *spacedata, BWinEvent *evt)
case PKEY:
if(G.qual & LR_SHIFTKEY) {
extern char bprogname[]; /* usiblender.c */
-
+#ifdef WIN32
sprintf(name, "%s -a \"%s%s\"", bprogname, simasel->dir, simasel->file);
+#else
+ sprintf(name, "\"%s\" -a \"%s%s\"", bprogname, simasel->dir, simasel->file);
+#endif
system(name);
}
if(G.qual & LR_CTRLKEY) {