diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-01-15 18:48:46 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-01-15 18:48:46 +0300 |
commit | f66912a3351fc094e30daa5de53bef734493ad66 (patch) | |
tree | adb10b076dcba7ddf5085879a636d5fe27f26c86 /release/scripts/modules/bpy | |
parent | c6abe115129651abd80aa361ca9bf717cf81c382 (diff) |
misc edits, no functional changes
- enabling/disabling no longer prints in the terminal unless in debug mode.
- remove 'header' struct from BLI_storage_types.h, from revision 2 and is not used.
- Add GCC property to guardedalloc to warn if the return value from allocation functions isn't used.
Diffstat (limited to 'release/scripts/modules/bpy')
-rw-r--r-- | release/scripts/modules/bpy/utils.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/release/scripts/modules/bpy/utils.py b/release/scripts/modules/bpy/utils.py index 243ab866abb..f83b5ab01e0 100644 --- a/release/scripts/modules/bpy/utils.py +++ b/release/scripts/modules/bpy/utils.py @@ -430,7 +430,8 @@ def addon_enable(module_name, default_set=True): mod.__addon_enabled__ = True - print("\tbpy.utils.addon_enable", mod.__name__) + if _bpy.app.debug: + print("\tbpy.utils.addon_enable", mod.__name__) return mod @@ -469,7 +470,8 @@ def addon_disable(module_name, default_set=True): if addon: addons.remove(addon) - print("\tbpy.utils.addon_disable", module_name) + if _bpy.app.debug: + print("\tbpy.utils.addon_disable", module_name) def addon_reset_all(reload_scripts=False): |