[#27439] Console window doesn't hide on startup when presets are used (Windows)
authorCampbell Barton <ideasman42@gmail.com>
Fri, 20 May 2011 00:21:38 +0000 (00:21 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 20 May 2011 00:21:38 +0000 (00:21 +0000)
only print preset load messages in when debug is enabled.

release/scripts/modules/bpy/utils.py

index a2d7b9e502f6ecbce30440514e6a2f049a5aaecf..7c0d3d24cba546c2c04e0b729bd0eedc91384dc9 100644 (file)
@@ -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[:]