Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <bastien@blender.org>2022-10-07 12:27:06 +0300
committerBastien Montagne <bastien@blender.org>2022-10-07 12:29:21 +0300
commitf3975a3bad00da1d6df6026c9e74667d92c8288d (patch)
tree5c3ba1123a0c60e2018f37575e6077d74a7736cb /io_scene_fbx/export_fbx_bin.py
parenteb09be71a96c4fe910fdc43373be5ec08b419d2c (diff)
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.
Diffstat (limited to 'io_scene_fbx/export_fbx_bin.py')
-rw-r--r--io_scene_fbx/export_fbx_bin.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/io_scene_fbx/export_fbx_bin.py b/io_scene_fbx/export_fbx_bin.py
index a4a96bf5..b4b596be 100644
--- a/io_scene_fbx/export_fbx_bin.py
+++ b/io_scene_fbx/export_fbx_bin.py
@@ -2842,6 +2842,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)