diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-03-27 15:29:42 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-03-27 15:29:53 +0300 |
commit | db4a5222495a95e50250b1a27a32f16487d1bcb8 (patch) | |
tree | 106b6cd483b36b1758ae2f39d819e1026c4b5e0e /source/blender/makesrna/intern/rna_access.c | |
parent | 6387fdda743e3338293f41e2d2836f3ee2512ddf (diff) |
Revert "RNA: error on register when classes use invalid identifiers"
This reverts commit b24a255ca67841ff2d6121327791e933ce8e3602.
The warning wasn't being printed, so many add-ons weren't yet updated.
Re-enable now warnings are printed to allow addon developers to update.
Diffstat (limited to 'source/blender/makesrna/intern/rna_access.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_access.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c index 0c8183e795d..d72e6a5a9c9 100644 --- a/source/blender/makesrna/intern/rna_access.c +++ b/source/blender/makesrna/intern/rna_access.c @@ -1017,8 +1017,14 @@ bool RNA_struct_bl_idname_ok_or_report(ReportList *reports, const char *identifi const int len_sep = strlen(sep); const int len_id = strlen(identifier); const char *p = strstr(identifier, sep); + /* TODO: make error, for now warning until add-ons update. */ +#if 1 + const int report_level = RPT_WARNING; + const bool failure = true; +#else const int report_level = RPT_ERROR; const bool failure = false; +#endif if (p == NULL || p == identifier || p + len_sep >= identifier + len_id) { BKE_reportf(reports, report_level, "'%s' doesn't contain '%s' with prefix & suffix", identifier, sep); return failure; |