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 <bastien@blender.org>2020-07-13 13:48:56 +0300
committerBastien Montagne <bastien@blender.org>2020-07-13 13:51:29 +0300
commit976a0ff691040fee4633910b9ab6f898d406405a (patch)
treecfceef1257f898141936516aa43960c197581857 /source/blender/makesrna/intern/rna_access_internal.h
parentf8afbb76571fa816a1d869240bdca595b97da846 (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.h1
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);