diff options
author | Martin Poirier <theeth@yahoo.com> | 2010-03-13 07:51:24 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2010-03-13 07:51:24 +0300 |
commit | 8cae1622455f6479a13fabd096cd9d9d3d0abd47 (patch) | |
tree | b99019ad376d71d549c6fe02ebf0fa9ad776b06a /source | |
parent | 9439c0b1cbc1b238a7bca5bf07f4381864fbce23 (diff) |
[#21580] -- argument tries to load as a blend file
Stop processing arguments on --
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenlib/intern/BLI_args.c | 4 |
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); |