diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2019-01-16 21:41:29 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2019-01-16 21:43:53 +0300 |
commit | 81022000063c1fe84d85e8de416d8ab0c2c4c516 (patch) | |
tree | 01db45c9a9f3e87b107b2d61904080261cecf730 /source/blender/editors/screen | |
parent | feaf846f93913840b523843c63ef67dfa82379cc (diff) |
Cleanup/sanitize usages of G.debug_value.
There was no documentation at all, some very bad practices (like using
G.debug_value > 0 as some sort of global debug print switch), and even
an overlapping use of '1' value...
Also, python setter did not check for valid range (since this is a
short, not an int).
Diffstat (limited to 'source/blender/editors/screen')
-rw-r--r-- | source/blender/editors/screen/area.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c index 34a20c8ccf7..76c907a964a 100644 --- a/source/blender/editors/screen/area.c +++ b/source/blender/editors/screen/area.c @@ -210,7 +210,7 @@ static void area_draw_azone_fullscreen(short x1, short y1, short x2, short y2, f * The click_rect is the same as defined in fullscreen_click_rcti_init * Keep them both in sync */ - if (G.debug_value == 1) { + if (G.debug_value == 101) { rcti click_rect; float icon_size = UI_DPI_ICON_SIZE + 7 * UI_DPI_FAC; |