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-03-25 06:39:55 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-03-25 06:48:28 +0300
commitb24a255ca67841ff2d6121327791e933ce8e3602 (patch)
tree212c3ad49556dc0335fd1b343aaa436f673b224b /source/blender
parent2ed3fbf10693e45393b6cd49b4d9ac15e37a0305 (diff)
RNA: error on register when classes use invalid identifiers
Ensure conventions are met since we're in beta and all instances should be updated before release.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/makesrna/intern/rna_access.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c
index d72e6a5a9c9..0c8183e795d 100644
--- a/source/blender/makesrna/intern/rna_access.c
+++ b/source/blender/makesrna/intern/rna_access.c
@@ -1017,14 +1017,8 @@ 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;