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:
authorCampbell Barton <ideasman42@gmail.com>2019-09-11 15:21:13 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-09-11 15:21:13 +0300
commit0c2a314443e8a0e38795e25b031997437278a8d7 (patch)
treef33950636029ef829023fda5203e1522c94e3c81 /source/blender/makesrna/intern/rna_internal.h
parenta941e9de8909d16c778ba9feff973b17bfed7e7e (diff)
RNA: automatically initialize defaults from DNA
Use defaults from DNA_*_defaults.h headers, this avoids calling RNA_def_property_*_default explicitly & having to repeat values.
Diffstat (limited to 'source/blender/makesrna/intern/rna_internal.h')
-rw-r--r--source/blender/makesrna/intern/rna_internal.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_internal.h b/source/blender/makesrna/intern/rna_internal.h
index 28e2b63388a..04a59a48b63 100644
--- a/source/blender/makesrna/intern/rna_internal.h
+++ b/source/blender/makesrna/intern/rna_internal.h
@@ -74,6 +74,11 @@ typedef struct PropertyDefRNA {
const char *dnatype;
int dnaarraylength;
int dnapointerlevel;
+ /**
+ * Offset in bytes within `dnastructname`.
+ * -1 when unusable (follows pointer for e.g.). */
+ int dnaoffset;
+ int dnasize;
/* for finding length of array collections */
const char *dnalengthstructname;