diff options
author | Lukas Toenne <lukas.toenne@googlemail.com> | 2013-01-28 16:34:18 +0400 |
---|---|---|
committer | Lukas Toenne <lukas.toenne@googlemail.com> | 2013-01-28 16:34:18 +0400 |
commit | a4548d33a909a140866e1dfd949ad2277a2ee79f (patch) | |
tree | 009d50c7d6546f5484e94019063e4b9d8e2d832c | |
parent | 1c2d5eeeef6551b38a1ad3d1ebe180d78d03c94a (diff) |
Fix for the is_registered_optional property of RNA functions, now only returns true for actually optional functions.
-rw-r--r-- | source/blender/makesrna/intern/rna_rna.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_rna.c b/source/blender/makesrna/intern/rna_rna.c index b5b3897ed46..9bd20d854e7 100644 --- a/source/blender/makesrna/intern/rna_rna.c +++ b/source/blender/makesrna/intern/rna_rna.c @@ -946,7 +946,7 @@ static int rna_Function_registered_get(PointerRNA *ptr) static int rna_Function_registered_optional_get(PointerRNA *ptr) { FunctionRNA *func = (FunctionRNA *)ptr->data; - return func->flag & FUNC_REGISTER_OPTIONAL; + return func->flag & (FUNC_REGISTER_OPTIONAL & ~FUNC_REGISTER); } static int rna_Function_no_self_get(PointerRNA *ptr) |