diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-05-20 04:21:38 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-05-20 04:21:38 +0400 |
commit | c672b3fb67fc98b9b394af993b54d3f578e809f2 (patch) | |
tree | bcce7536903ddb67cab74df90ee751375217e0e5 /release/scripts/modules/bpy | |
parent | b181368f527466960f5c9673f85b8c2e70c530f3 (diff) |
[#27439] Console window doesn't hide on startup when presets are used (Windows)
only print preset load messages in when debug is enabled.
Diffstat (limited to 'release/scripts/modules/bpy')
-rw-r--r-- | release/scripts/modules/bpy/utils.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/release/scripts/modules/bpy/utils.py b/release/scripts/modules/bpy/utils.py index a2d7b9e502f..7c0d3d24cba 100644 --- a/release/scripts/modules/bpy/utils.py +++ b/release/scripts/modules/bpy/utils.py @@ -379,7 +379,9 @@ def preset_find(name, preset_path, display_name=False): def keyconfig_set(filepath): from os.path import basename, splitext - print("loading preset:", filepath) + if _bpy.app.debug: + print("loading preset:", filepath) + keyconfigs = _bpy.context.window_manager.keyconfigs keyconfigs_old = keyconfigs[:] |