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:
authorMartin Poirier <theeth@yahoo.com>2010-03-13 07:51:24 +0300
committerMartin Poirier <theeth@yahoo.com>2010-03-13 07:51:24 +0300
commit8cae1622455f6479a13fabd096cd9d9d3d0abd47 (patch)
treeb99019ad376d71d549c6fe02ebf0fa9ad776b06a /source/blender/blenlib/intern/BLI_args.c
parent9439c0b1cbc1b238a7bca5bf07f4381864fbce23 (diff)
[#21580] -- argument tries to load as a blend file
Stop processing arguments on --
Diffstat (limited to 'source/blender/blenlib/intern/BLI_args.c')
-rw-r--r--source/blender/blenlib/intern/BLI_args.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/BLI_args.c b/source/blender/blenlib/intern/BLI_args.c
index cd876023830..abf9dbcd9c5 100644
--- a/source/blender/blenlib/intern/BLI_args.c
+++ b/source/blender/blenlib/intern/BLI_args.c
@@ -177,6 +177,10 @@ void BLI_argsParse(struct bArgs *ba, int pass, BA_ArgCallback default_cb, void *
int i = 0;
for( i = 1; i < ba->argc; i++) { /* skip argv[0] */
+ /* stop on -- */
+ if (BLI_streq(ba->argv[i], "--"))
+ break;
+
if (ba->passes[i] == 0) {
/* -1 signal what side of the comparison it is */
bArgument *a = lookUp(ba, ba->argv[i], pass, -1);