[Bf-blender-cvs] [7b5796dcaa9] master: Docs: clarify description and usage of 'bpy.app.version_file'

Aaron Carlisle noreply at git.blender.org
Sun May 30 17:09:37 CEST 2021


Commit: 7b5796dcaa95ebb83973539a2400654165375e1d
Author: Aaron Carlisle
Date:   Sun May 30 11:07:38 2021 -0400
Branches: master
https://developer.blender.org/rB7b5796dcaa95ebb83973539a2400654165375e1d

Docs: clarify description and usage of 'bpy.app.version_file'

Fixes T88669

===================================================================

M	source/blender/python/intern/bpy_app.c

===================================================================

diff --git a/source/blender/python/intern/bpy_app.c b/source/blender/python/intern/bpy_app.c
index 927ec11c376..4de6063098b 100644
--- a/source/blender/python/intern/bpy_app.c
+++ b/source/blender/python/intern/bpy_app.c
@@ -82,7 +82,10 @@ static PyTypeObject BlenderAppType;
 
 static PyStructSequence_Field app_info_fields[] = {
     {"version", "The Blender version as a tuple of 3 numbers. eg. (2, 83, 1)"},
-    {"version_file", "The blend file version, compatible with ``bpy.data.version``"},
+    {"version_file",
+     "The Blender version, as a tuple, last used to save a .blend file, compatible with "
+     "``bpy.data.version``. This value should be used for handling compatibility changes between "
+     "Blender versions"},
     {"version_string", "The Blender version formatted as a string"},
     {"version_cycle", "The release status of this build alpha/beta/rc/release"},
     {"version_char", "Deprecated, always an empty string"},



More information about the Bf-blender-cvs mailing list