Fix Xcode link error, missing definitions in RNA C++ API that other compilers ignored.

This commit is contained in:
Brecht Van Lommel
2016-11-20 17:46:29 +01:00
parent b86c6aa6be
commit 83b1f24140

View File

@@ -1536,7 +1536,11 @@ static void rna_def_property_funcs(FILE *f, StructRNA *srna, PropertyDefRNA *dp)
const char *nextfunc = (const char *)cprop->next;
const char *item_type = (const char *)cprop->item_type;
if (dp->dnatype && STREQ(dp->dnatype, "ListBase")) {
if (cprop->length) {
/* always generate if we have a manual implementation */
cprop->length = (void *)rna_def_property_length_func(f, srna, prop, dp, (const char *)cprop->length);
}
else if (dp->dnatype && STREQ(dp->dnatype, "ListBase")) {
/* pass */
}
else if (dp->dnalengthname || dp->dnalengthfixed) {