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-05-20 04:21:38 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-05-20 04:21:38 +0400
commitc672b3fb67fc98b9b394af993b54d3f578e809f2 (patch)
treebcce7536903ddb67cab74df90ee751375217e0e5 /release/scripts/modules/bpy
parentb181368f527466960f5c9673f85b8c2e70c530f3 (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.py4
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[:]