diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-08-27 04:53:16 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-08-27 04:55:15 +0400 |
commit | c0d9ef65e95e808d4444892ada29a030215a5d17 (patch) | |
tree | ec1b536d1237dc3550f7e552705b3a0fb70435ba /source/blender/editors/interface/interface_panel.c | |
parent | e71f2fc3baff2743217d9e2331ed55e2f165cf5a (diff) |
UI: Warn when using fallback category
Scripts should be updated.
Diffstat (limited to 'source/blender/editors/interface/interface_panel.c')
-rw-r--r-- | source/blender/editors/interface/interface_panel.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/editors/interface/interface_panel.c b/source/blender/editors/interface/interface_panel.c index 78f67beacff..687789b5755 100644 --- a/source/blender/editors/interface/interface_panel.c +++ b/source/blender/editors/interface/interface_panel.c @@ -1534,6 +1534,12 @@ void UI_panel_category_draw_all(ARegion *ar, const char *category_id_active) const bool is_active = STREQ(category_id, category_id_active); +#ifdef DEBUG + if (STREQ(category_id, PNL_CATEGORY_FALLBACK)) { + printf("WARNING: Panel has no 'bl_category', script needs updating!\n"); + } +#endif + glEnable(GL_BLEND); #ifdef USE_FLAT_INACTIVE |