Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-01-15 18:48:46 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-01-15 18:48:46 +0300
commitf66912a3351fc094e30daa5de53bef734493ad66 (patch)
treeadb10b076dcba7ddf5085879a636d5fe27f26c86 /release/scripts/modules/bpy
parentc6abe115129651abd80aa361ca9bf717cf81c382 (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.py6
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):