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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user