diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-09-18 05:22:28 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-09-18 05:22:28 +0400 |
commit | 9d6f05edb810ed06b7d1a48c7c00cd6e62956d5f (patch) | |
tree | 6e14114a60808920315abac5eabcf1c4ea956344 /source/blender/makesrna/RNA_access.h | |
parent | eb4bf9212be6e72f1fcad60cf5828364321f969a (diff) |
fix relating to bug [#36758],
When printing operator reports, ommit unset properties.
This is needed because in some cases operators check if a value is set or not, so filling in default arguments may change behavior.
Diffstat (limited to 'source/blender/makesrna/RNA_access.h')
-rw-r--r-- | source/blender/makesrna/RNA_access.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/makesrna/RNA_access.h b/source/blender/makesrna/RNA_access.h index b6152c4a4bf..d18fe7629fd 100644 --- a/source/blender/makesrna/RNA_access.h +++ b/source/blender/makesrna/RNA_access.h @@ -1035,15 +1035,15 @@ void RNA_struct_property_unset(PointerRNA *ptr, const char *identifier); /* python compatible string representation of this property, (must be freed!) */ char *RNA_property_as_string(struct bContext *C, PointerRNA *ptr, PropertyRNA *prop, int index, int max_prop_length); char *RNA_pointer_as_string(struct bContext *C, PointerRNA *ptr, PropertyRNA *prop_ptr, PointerRNA *ptr_prop); -char *RNA_pointer_as_string_keywords_ex(struct bContext *C, PointerRNA *ptr, PointerRNA *ptr_default, - const short skip_optional_value, const short all_args, +char *RNA_pointer_as_string_keywords_ex(struct bContext *C, PointerRNA *ptr, + const bool skip_optional_value, const bool all_args, const int max_prop_length, PropertyRNA *iterprop); -char *RNA_pointer_as_string_keywords(struct bContext *C, PointerRNA *ptr, PointerRNA *ptr_default, - const short skip_optional_value, const short all_args, +char *RNA_pointer_as_string_keywords(struct bContext *C, PointerRNA *ptr, + const bool skip_optional_value, const bool all_args, const int max_prop_length); -char *RNA_function_as_string_keywords(struct bContext *C, FunctionRNA *func, PointerRNA *ptr_default, - const short as_function, const short all_args, +char *RNA_function_as_string_keywords(struct bContext *C, FunctionRNA *func, + const bool as_function, const bool all_args, const int max_prop_length); /* Function */ |