[Bf-extensions-cvs] [ed42feae] master: FBX Export: add .blend file path to the FBX header.
Richard Brenick
noreply at git.blender.org
Mon Jan 10 16:30:29 CET 2022
Commit: ed42feaed565f5d21f10b05eee1f985a14f3cf11
Author: Richard Brenick
Date: Mon Jan 10 16:29:44 2022 +0100
Branches: master
https://developer.blender.org/rBAed42feaed565f5d21f10b05eee1f985a14f3cf11
FBX Export: add .blend file path to the FBX header.
It's handy being able to track where fbx files originate from.
Reviewed By: mont29
Differential Revision: https://developer.blender.org/D13788
===================================================================
M io_scene_fbx/__init__.py
M io_scene_fbx/export_fbx_bin.py
===================================================================
diff --git a/io_scene_fbx/__init__.py b/io_scene_fbx/__init__.py
index 9ae3cee8..3837be6a 100644
--- a/io_scene_fbx/__init__.py
+++ b/io_scene_fbx/__init__.py
@@ -21,7 +21,7 @@
bl_info = {
"name": "FBX format",
"author": "Campbell Barton, Bastien Montagne, Jens Restemeier",
- "version": (4, 28, 0),
+ "version": (4, 29, 0),
"blender": (2, 90, 0),
"location": "File > Import-Export",
"description": "FBX IO meshes, UV's, vertex colors, materials, textures, cameras, lamps and actions",
diff --git a/io_scene_fbx/export_fbx_bin.py b/io_scene_fbx/export_fbx_bin.py
index af8e77af..6e7e960b 100644
--- a/io_scene_fbx/export_fbx_bin.py
+++ b/io_scene_fbx/export_fbx_bin.py
@@ -2769,6 +2769,7 @@ def fbx_header_elements(root, scene_data, time=None):
lastsaved("p_string", b"ApplicationName", app_name)
lastsaved("p_string", b"ApplicationVersion", app_ver)
lastsaved("p_datetime", b"DateTime_GMT", "01/01/1970 00:00:00.000")
+ original("p_string", b"ApplicationNativeFile", bpy.data.filepath)
# ##### End of FBXHeaderExtension element.
More information about the Bf-extensions-cvs
mailing list