[Bf-extensions-cvs] [80969b3d] blender-v3.3-release: Fix T99876: FBX exporting animation with 1 fps

Bastien Montagne noreply at git.blender.org
Mon Nov 28 15:23:54 CET 2022


Commit: 80969b3d451dfc305c5fa77f7774b849752a7d44
Author: Bastien Montagne
Date:   Fri Oct 7 11:27:06 2022 +0200
Branches: blender-v3.3-release
https://developer.blender.org/rBA80969b3d451dfc305c5fa77f7774b849752a7d44

Fix T99876: FBX exporting animation with 1 fps

As suggested by Omar Emara (@OmarSquircleArt), break after first
matching framerate found, instead of searching the whole list everytime,
ending up selecting the last matching value.

NTSC 'drop frame' type are rather unusual, they should never be
auto-selected anyway.

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

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 feea8436..a21a4a3c 100644
--- a/io_scene_fbx/__init__.py
+++ b/io_scene_fbx/__init__.py
@@ -3,8 +3,8 @@
 bl_info = {
     "name": "FBX format",
     "author": "Campbell Barton, Bastien Montagne, Jens Restemeier",
-    "version": (4, 36, 3),
-    "blender": (3, 2, 0),
+    "version": (4, 36, 4),
+    "blender": (3, 3, 0),
     "location": "File > Import-Export",
     "description": "FBX IO meshes, UV's, vertex colors, materials, textures, cameras, lamps and actions",
     "warning": "",
diff --git a/io_scene_fbx/export_fbx_bin.py b/io_scene_fbx/export_fbx_bin.py
index c34a5182..e9177f0c 100644
--- a/io_scene_fbx/export_fbx_bin.py
+++ b/io_scene_fbx/export_fbx_bin.py
@@ -2829,6 +2829,7 @@ def fbx_header_elements(root, scene_data, time=None):
         if similar_values(fps, ref_fps):
             fbx_fps = ref_fps
             fbx_fps_mode = fps_mode
+            break
     elem_props_set(props, "p_enum", b"TimeMode", fbx_fps_mode)
     elem_props_set(props, "p_timestamp", b"TimeSpanStart", 0)
     elem_props_set(props, "p_timestamp", b"TimeSpanStop", FBX_KTIME)



More information about the Bf-extensions-cvs mailing list