diff options
author | Bastien Montagne <bastien@blender.org> | 2020-07-13 13:48:56 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2020-07-13 13:51:29 +0300 |
commit | 976a0ff691040fee4633910b9ab6f898d406405a (patch) | |
tree | cfceef1257f898141936516aa43960c197581857 /source/blender/makesrna/intern/rna_access_internal.h | |
parent | f8afbb76571fa816a1d869240bdca595b97da846 (diff) |
RNA code cleanup: Fix wrong usages of `rna_idproperty_check()`.
This function is more expansive than the simpler `rna_ensure_property()`
one, and should only be used when IDProperty data is actually needed.
If one only needs to ensure it has a valid PropertyRNA pointer,
`rna_ensure_property()` is much more efficient.
Also add compiler warnings when results of those functions are unused,
this should never be the case.
Diffstat (limited to 'source/blender/makesrna/intern/rna_access_internal.h')
-rw-r--r-- | source/blender/makesrna/intern/rna_access_internal.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_access_internal.h b/source/blender/makesrna/intern/rna_access_internal.h index 7d8fff21862..a5b554ec7a6 100644 --- a/source/blender/makesrna/intern/rna_access_internal.h +++ b/source/blender/makesrna/intern/rna_access_internal.h @@ -28,7 +28,6 @@ struct IDProperty; struct PropertyRNAOrID; -PropertyRNA *rna_ensure_property(PropertyRNA *prop); void rna_property_rna_or_id_get(PropertyRNA *prop, PointerRNA *ptr, PropertyRNAOrID *r_prop_rna_or_id); |