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:
authorBastien Montagne <montagne29@wanadoo.fr>2013-08-27 01:39:06 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2013-08-27 01:39:06 +0400
commit71e5e90fb7d44482c87692c3fe3332c22e353d07 (patch)
treed43fb8c8489faa86c699bec85df170e85a39acf8 /release/scripts/modules/rna_info.py
parent1679cd7f966b5441bd02e8960ece398ee1980c7f (diff)
Followup to r59536: make "is_argument_optional" available to py, and use it in API doc generation.
Thanks Campbell for the much better name suggestion!
Diffstat (limited to 'release/scripts/modules/rna_info.py')
-rw-r--r--release/scripts/modules/rna_info.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/release/scripts/modules/rna_info.py b/release/scripts/modules/rna_info.py
index bf15b472805..804055e61a5 100644
--- a/release/scripts/modules/rna_info.py
+++ b/release/scripts/modules/rna_info.py
@@ -296,6 +296,8 @@ class InfoPropertyRNA:
elif as_arg:
if not self.is_required:
type_info.append("optional")
+ if self.is_argument_optional:
+ type_info.append("optional argument")
else: # readonly is only useful for self's, not args
if self.is_readonly:
type_info.append("readonly")