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:
authorSybren A. Stüvel <sybren@stuvel.eu>2015-02-18 14:07:48 +0300
committerSybren A. Stüvel <sybren@stuvel.eu>2015-02-18 14:08:20 +0300
commit6920735cff6b5b2ab9e4e6d8090fb48bba7d9ba4 (patch)
treec877cd68b3636d8dbc65014675d6e0cdeed20644 /release/scripts
parent7f7413bce24ea21cd5e47f307d84d20606ac349c (diff)
Include SDL information in system info text.
Adds bpy.app.sdl to expose SDL version information. When SDL is not available on a Linux system, certain Blender features are silently disabled (like joystick support in the BGE). This change is the first step towards making it more obvious why something isn't working. SDL information is exposed to Python via bpy.app.sdl, in the same way as OCIO and OIIO information is exposed. Generated system-info.txt contains SDL loading method (linked or dynamically loaded by Blender) and SDL version number. Reviewed by: sergey, campbellbarton Differential Revision: https://developer.blender.org/D1112
Diffstat (limited to 'release/scripts')
-rw-r--r--release/scripts/modules/sys_info.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/release/scripts/modules/sys_info.py b/release/scripts/modules/sys_info.py
index 74a6f4c36e8..1b63d1d9d8d 100644
--- a/release/scripts/modules/sys_info.py
+++ b/release/scripts/modules/sys_info.py
@@ -118,6 +118,18 @@ def write_sysinfo(op):
else:
output.write("Blender was built without FFmpeg support\n")
+ if bpy.app.build_options.sdl:
+ output.write("\nSDL\n")
+ output.write(lilies)
+ output.write("Version: %s\n" % bpy.app.sdl.version_string)
+ output.write("Loading method: ")
+ if bpy.app.build_options.sdl_dynload:
+ output.write("dynamically loaded by Blender (WITH_SDL_DYNLOAD=ON)\n")
+ else:
+ output.write("linked (WITH_SDL_DYNLOAD=OFF)\n")
+ if not bpy.app.sdl.available:
+ output.write("WARNING: Blender could not load SDL library\n")
+
output.write("\nOther Libraries:\n")
output.write(lilies)
ocio = bpy.app.ocio
@@ -148,6 +160,9 @@ def write_sysinfo(op):
else:
output.write("Blender was built without Cycles support\n")
+ if not bpy.app.build_options.sdl:
+ output.write("SDL: Blender was built without SDL support\n")
+
if bpy.app.background:
output.write("\nOpenGL: missing, background mode\n")
else: