Cleanup/sanitize usages of G.debug_value.
authorBastien Montagne <montagne29@wanadoo.fr>
Wed, 16 Jan 2019 18:41:29 +0000 (19:41 +0100)
committerBastien Montagne <montagne29@wanadoo.fr>
Wed, 16 Jan 2019 18:43:53 +0000 (19:43 +0100)
commit81022000063c1fe84d85e8de416d8ab0c2c4c516
tree01db45c9a9f3e87b107b2d61904080261cecf730
parentfeaf846f93913840b523843c63ef67dfa82379cc
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).
source/blender/blenkernel/BKE_global.h
source/blender/blenkernel/intern/cloth.c
source/blender/editors/screen/area.c
source/blender/modifiers/intern/MOD_cloth.c
source/blender/modifiers/intern/MOD_collision.c
source/blender/python/intern/bpy_app.c