COLLADA branch: merge from trunk -r 25745:26429.
[blender-staging.git] / tools / Blender.py
index 097549a08c7ae0739c88c8c36af2a7cf15b758b5..436c21baa9cbe65d0c9998dce83c250c187d352e 100644 (file)
@@ -269,6 +269,12 @@ def buildinfo(lenv, build_type):
 
 ##### ACTION STUFF #############
 
+def my_print_cmd_line(self, s, target, source, env):
+       sys.stdout.write(' ' * 70 + '\r')
+       sys.stdout.flush()
+       sys.stdout.write(s + "\r")
+       sys.stdout.flush()
+
 def my_compile_print(target, source, env):
        a = '%s' % (source[0])
        d, f = os.path.split(a)
@@ -331,6 +337,8 @@ def set_quiet_output(env):
        env['BUILDERS']['StaticLibrary'] = static_lib
        env['BUILDERS']['Library'] = static_lib
        env['BUILDERS']['Program'] = program
+       if env['BF_LINE_OVERWRITE']:
+               SCons.Action._ActionAction.print_cmd_line = my_print_cmd_line
 
        
 class CompZipFile(zipfile.ZipFile):