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.
This commit is contained in:
2011-01-15 15:48:46 +00:00
parent c6abe11512
commit f66912a335
3 changed files with 18 additions and 19 deletions

View File

@@ -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):