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.
This commit is contained in:
parent
eb09be71a9
commit
f3975a3bad
Notes:
blender-bot
2023-02-14 18:17:11 +01:00
Referenced by issue blender/blender#100749: Blender LTS: Maintenance Task 3.3 Referenced by issue blender/blender#100749, Blender LTS: Maintenance Task 3.3 Referenced by issue blender/blender#102857, FBX exporting camera with 30FPS bug Referenced by issue #101662, Blender 3.3 FBX export with armature animation is broken. Referenced by issue #101277, Exported files can't be opened in Mixamo Referenced by issue #99876, FBX exporting animation with 1 fps
|
@ -3,7 +3,7 @@
|
|||
bl_info = {
|
||||
"name": "FBX format",
|
||||
"author": "Campbell Barton, Bastien Montagne, Jens Restemeier",
|
||||
"version": (4, 37, 0),
|
||||
"version": (4, 37, 1),
|
||||
"blender": (3, 4, 0),
|
||||
"location": "File > Import-Export",
|
||||
"description": "FBX IO meshes, UV's, vertex colors, materials, textures, cameras, lamps and actions",
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue