diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2018-11-21 23:39:19 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2018-11-22 00:03:24 +0300 |
commit | ce137699f9447a63e531631b46e265106cb91c71 (patch) | |
tree | 48cb1820df54bf731ed51e1bc80188b0e3fe9957 /source/blender/makesrna/intern/rna_ui.c | |
parent | a9bf6a3b3adfce31a230f10c00a0a89cf2d7e985 (diff) |
Cleanup: Move debug warning message about panels missing category from drawing code to registering code.
In drawing it was pretty stupid (since we did not know *which* panels were
affected), and really, really annoyingly noisy!
Diffstat (limited to 'source/blender/makesrna/intern/rna_ui.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_ui.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_ui.c b/source/blender/makesrna/intern/rna_ui.c index 5f4b6ffc41c..ea39ce72598 100644 --- a/source/blender/makesrna/intern/rna_ui.c +++ b/source/blender/makesrna/intern/rna_ui.c @@ -249,6 +249,9 @@ static StructRNA *rna_Panel_register( if (dummypt.category[0] == '\0') { /* Use a fallback, otherwise an empty value will draw the panel in every category. */ strcpy(dummypt.category, PNL_CATEGORY_FALLBACK); +#ifndef NDEBUG + printf("Registering panel class: '%s' misses category, please update the script\n", dummypt.idname); +#endif } } else { |