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:
authorJoshua Leung <aligorith@gmail.com>2014-01-04 16:24:29 +0400
committerJoshua Leung <aligorith@gmail.com>2014-01-04 16:24:54 +0400
commit1db7f2f93d9d7a119be7998f5acb4a8f9547d8b9 (patch)
tree5c18017ccd47d52d6d367c0d3b1e8808d0a4432f /release/scripts/modules/sys_info.py
parent6063c58cc6d1e82d2288e0aa99846ab8ccd0228b (diff)
Quick fix for system info text always being scrolled out of view when loaded for the first time
Added an API method to Text datablocks for moving the cursor to a specific line in the file. This makes it possible to reset the cursor position at the end of the sysinfo operator.
Diffstat (limited to 'release/scripts/modules/sys_info.py')
-rw-r--r--release/scripts/modules/sys_info.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/release/scripts/modules/sys_info.py b/release/scripts/modules/sys_info.py
index 1785ab59a5f..f284ba475e3 100644
--- a/release/scripts/modules/sys_info.py
+++ b/release/scripts/modules/sys_info.py
@@ -163,4 +163,7 @@ def write_sysinfo(op):
for l in glext:
output.write("\t\t%r\n" % (l))
+ # Back to first line, so everything is still in sight
+ output.jump(1)
+
op.report({'INFO'}, "System information generated in 'system-info.txt'")