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:
authorCampbell Barton <ideasman42@gmail.com>2021-02-02 11:36:18 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-02-02 11:36:18 +0300
commit356c62fe32266aed9c3b8d4cb33e8d949ff8b20a (patch)
tree824c76c27b54fa8507964b6c2f0984abbfdd16b3 /source/blender
parentbde797c172b8b533e6e4b01777d21448c0c25f70 (diff)
parent1d77302fd9ea9b3892ebdcf28150b3f7d40aeb21 (diff)
Merge branch 'blender-v2.92-release'
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/blenlib/BLI_args.h2
-rw-r--r--source/blender/blenlib/intern/BLI_args.c10
2 files changed, 12 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_args.h b/source/blender/blenlib/BLI_args.h
index b12b7ff5d1e..5d9c168a9bd 100644
--- a/source/blender/blenlib/BLI_args.h
+++ b/source/blender/blenlib/BLI_args.h
@@ -72,6 +72,8 @@ void BLI_args_parse(struct bArgs *ba, int pass, BA_ArgCallback default_cb, void
void BLI_args_print_arg_doc(struct bArgs *ba, const char *arg);
void BLI_args_print_other_doc(struct bArgs *ba);
+bool BLI_args_has_other_doc(const struct bArgs *ba);
+
void BLI_args_print(struct bArgs *ba);
#ifdef __cplusplus
diff --git a/source/blender/blenlib/intern/BLI_args.c b/source/blender/blenlib/intern/BLI_args.c
index 3d4521a3304..07ab4f407f2 100644
--- a/source/blender/blenlib/intern/BLI_args.c
+++ b/source/blender/blenlib/intern/BLI_args.c
@@ -275,6 +275,16 @@ void BLI_args_print_other_doc(struct bArgs *ba)
}
}
+bool BLI_args_has_other_doc(const struct bArgs *ba)
+{
+ for (const bArgDoc *d = ba->docs.first; d; d = d->next) {
+ if (d->done == 0) {
+ return true;
+ }
+ }
+ return false;
+}
+
void BLI_args_parse(struct bArgs *ba, int pass, BA_ArgCallback default_cb, void *default_data)
{
BLI_assert((pass != 0) && (pass >= -1));