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>2018-05-17 20:05:46 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-05-17 20:05:46 +0300
commitb29004825731c84b041a30777fe9f4496ce0756a (patch)
tree13446daef7a91c0d606e1099a532d2e86b69ff15
parent4461be1b722a4f6e5af4854eb12023b3670a4c3d (diff)
makesrna: error check from 2.8
-rw-r--r--source/blender/makesrna/intern/makesrna.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/makesrna.c b/source/blender/makesrna/intern/makesrna.c
index dcaaec707e2..94ae49c48c3 100644
--- a/source/blender/makesrna/intern/makesrna.c
+++ b/source/blender/makesrna/intern/makesrna.c
@@ -2831,6 +2831,10 @@ static void rna_generate_struct_prototypes(FILE *f)
if (dp->prop->type == PROP_POINTER) {
int a, found = 0;
const char *struct_name = rna_parameter_type_name(dp->prop);
+ if (struct_name == NULL) {
+ printf("No struct found for property '%s'\n", dp->prop->identifier);
+ exit(1);
+ }
for (a = 0; a < all_structures; a++) {
if (STREQ(struct_name, structures[a])) {