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-10 16:19:40 +0300
committerBastien Montagne <bastien@blender.org>2020-07-10 16:19:40 +0300
commit337e2c902930d8a8980505d66234bc46c95b051c (patch)
treed34a163fcdd1fc06dd85fdefcafa97f4a6abf89a /source/blender/makesrna/intern/rna_access_internal.h
parent6c1157201a143574c005147367bb2fd4ab320e73 (diff)
RNA: refactor how we get 'ensured' RNA properties.
Introduce new PropertyRNAOrID structure, storing most useful data about an 'opaque' PropertyRNA in relation with a given PointerRNA struct. It deals with all the three cases (pure static RNA, runtime RNA where data is actually stored in IDProperties, and pure IDProperties, aka custom data.
Diffstat (limited to 'source/blender/makesrna/intern/rna_access_internal.h')
-rw-r--r--source/blender/makesrna/intern/rna_access_internal.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_access_internal.h b/source/blender/makesrna/intern/rna_access_internal.h
index c7995746d08..ecc9386ca77 100644
--- a/source/blender/makesrna/intern/rna_access_internal.h
+++ b/source/blender/makesrna/intern/rna_access_internal.h
@@ -26,8 +26,12 @@
#include "rna_internal_types.h"
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);
void rna_idproperty_touch(struct IDProperty *idprop);
struct IDProperty *rna_idproperty_find(PointerRNA *ptr, const char *name);