[Bf-extensions-cvs] [5a7cd7d] master: Attempt to fix T44442: Avoid '.fbm' dir creation by not creating empty 'Content' elements.

Bastien Montagne noreply at git.blender.org
Fri May 22 22:25:41 CEST 2015


Commit: 5a7cd7d9b3f7f284ef54be27291d876a999bf48f
Author: Bastien Montagne
Date:   Fri May 22 21:25:28 2015 +0200
Branches: master
https://developer.blender.org/rBA5a7cd7d9b3f7f284ef54be27291d876a999bf48f

Attempt to fix T44442: Avoid '.fbm' dir creation by not creating empty 'Content' elements.

This sounds suspicious to me, but it’s FBX, so could be the solution, we'll see...

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

M	io_scene_fbx/export_fbx_bin.py

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

diff --git a/io_scene_fbx/export_fbx_bin.py b/io_scene_fbx/export_fbx_bin.py
index ff8581c..076fc1d 100644
--- a/io_scene_fbx/export_fbx_bin.py
+++ b/io_scene_fbx/export_fbx_bin.py
@@ -1377,8 +1377,10 @@ def fbx_data_video_elements(root, vid, scene_data):
             except Exception as e:
                 print("WARNING: embedding file {} failed ({})".format(filepath, e))
                 elem_data_single_bytes(fbx_vid, b"Content", b"")
-    else:
-        elem_data_single_bytes(fbx_vid, b"Content", b"")
+    # Looks like we'd rather not write any 'Content' element in this case (see T44442).
+    # Sounds suspect, but let's try it!
+    #~ else:
+        #~ elem_data_single_bytes(fbx_vid, b"Content", b"")
 
 
 def fbx_data_armature_elements(root, arm_obj, scene_data):



More information about the Bf-extensions-cvs mailing list