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@blender.org>2020-01-31 12:24:28 +0300
committerSybren A. Stüvel <sybren@blender.org>2020-01-31 13:29:29 +0300
commit14ccda75f6313849c5b4376f7e74def24084782e (patch)
treef2bc3367d202548927623781e9b8e56e68d0b307 /release/scripts/modules/sys_info.py
parentbcacf47cbcf72d13773577543835aaada7c8a522 (diff)
USD: Include USD library version in System Info
Pixar recently released USD 20.02 [1]. I think it's important for people to be able to figure out which version of the USD library is used in Blender. [1] https://github.com/PixarAnimationStudios/USD/releases/tag/v20.02 This commit exposes the USD library information via `bpy.app.usd`, and includes that info in the `system-info.txt` saved via Help → Save System Info. Reviewed by: brecht Differential Revision: https://developer.blender.org/D6724
Diffstat (limited to 'release/scripts/modules/sys_info.py')
-rw-r--r--release/scripts/modules/sys_info.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/release/scripts/modules/sys_info.py b/release/scripts/modules/sys_info.py
index 8b4e224efe4..656e2b3bd54 100644
--- a/release/scripts/modules/sys_info.py
+++ b/release/scripts/modules/sys_info.py
@@ -172,6 +172,13 @@ def write_sysinfo(filepath):
else:
output.write("Blender was built without Alembic support\n")
+ usd = bpy.app.usd
+ output.write("USD: ")
+ if usd.supported:
+ output.write("%s\n" % usd.version_string)
+ else:
+ output.write("Blender was built without USD support\n")
+
if not bpy.app.build_options.sdl:
output.write("SDL: Blender was built without SDL support\n")