0
0
Add-ons bundled with Blender releases
Go to file
Thomas Barlow e6ca87f4a6 Fix #104684: json2fbx.py script creates invalid FBX v7500+ files
As of FBX version 7500, the element metadata values are 64-bit as
opposed to being 32-bit in earlier versions.

FBX exported by Blender are currently always FBX version 7400, so the
FBX binary writing code was only set up to handle writing version 7400
files and earlier.

The json2fbx.py script however, can create FBX files with whatever
version is defined in the .json. Because the script uses the same code
as exporting an FBX with Blender, it would create invalid FBX version
7500+ files with 32-bit metadata values. Attempting to read one of these
files with Blender or external software would cause errors.

This patch sets global variables based on the version of the file being
exported and then uses those global variables when exporting to export
with the correct metadata values for the file version being exported.
This process is very similar to what is already done in parse_fbx.py
when importing FBX files.

There are no expected changes to FBX files exported by Blender with this
patch, only the json2fbx.py script should be affected.

Pull Request: blender/blender-addons#104913
2023-09-26 03:57:17 +02:00
.gitea Gitea: use full URL for referencing pull requests 2023-03-07 13:24:58 +01:00
.github Docs: change Git URLs to point projects.blender.org instead of git.blender.org 2023-02-07 14:46:01 +01:00
add_camera_rigs License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
add_curve_extra_objects Extra objects: Fix TypeError when torus knot added 2023-08-01 13:41:10 +02:00
add_curve_sapling Fix #104794: Handle blank lines in the sapling preset files 2023-08-02 20:53:51 +02:00
add_mesh_BoltFactory Merge branch 'blender-v3.6-release' 2023-06-19 21:48:14 -04:00
add_mesh_discombobulator Remove bl_options from menus which caused tests to fail 2023-09-07 17:50:38 +10:00
add_mesh_extra_objects License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
add_mesh_geodesic_domes License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
amaranth Amaranth: remove render output Z check, since this option was removed 2023-07-04 19:54:15 +02:00
animation_animall License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
ant_landscape Merge branch 'blender-v3.6-release' 2023-06-19 21:48:14 -04:00
archimesh License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
blender_id License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
btrace License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
curve_tools Curve tools: Calculate length on multiple curves 2023-08-16 23:12:05 +02:00
greasepencil_tools GPencil Tools: Fix box deform operator 2023-09-23 22:00:56 +02:00
hydra_storm Hydra Storm: prepare for MaterialX export support 2023-09-07 19:11:48 +02:00
io_anim_bvh Cleanup: autopep8 on io_anim_bvh 2023-08-09 17:56:56 +10:00
io_anim_nuke_chan License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
io_coat3D License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
io_curve_svg License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
io_export_dxf License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
io_import_dxf License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
io_import_palette License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
io_mesh_atomic Shaders: update for Principled BSDF changes 2023-09-25 19:29:00 +02:00
io_mesh_stl License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
io_mesh_uv_layout License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
io_scene_3ds Shaders: update for Principled BSDF changes 2023-09-25 19:29:00 +02:00
io_scene_fbx Fix #104684: json2fbx.py script creates invalid FBX v7500+ files 2023-09-26 03:57:17 +02:00
io_scene_gltf2 Shaders: update for Principled BSDF changes 2023-09-25 19:29:00 +02:00
io_scene_x3d Import_x3d: Fixed mesh flat/smooth shading 2023-06-20 23:05:52 +02:00
io_shape_mdd License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
magic_uv Fix #104729. Added missing OperatorStrokeElement keywords. 2023-07-02 12:29:45 +02:00
materials_library_vx License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
materials_utils License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
measureit License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
mesh_inset License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
mesh_snap_utilities_line Fix #110601: Line Tool crashes when object has subdivision surface 2023-07-31 13:01:46 -03:00
mesh_tiny_cad License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
mesh_tissue Merge branch 'blender-v3.6-release' 2023-06-19 21:48:14 -04:00
mesh_tools License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
node_wrangler Shaders: update for Principled BSDF changes 2023-09-25 19:29:00 +02:00
object_carver License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
object_collection_manager Merge branch 'blender-v3.6-release' 2023-06-22 02:17:38 -04:00
object_fracture_cell Fix: Update Cell Fracture for removal of old style context override 2023-07-19 21:40:03 +02:00
object_print3d_utils License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
object_scatter License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
pose_library Pose Library: Tweak to the add-on description 2023-09-20 11:44:14 +02:00
power_sequencer License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
precision_drawing_tools License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
presets UI: Update theme presets with missing fields and values 2023-09-21 16:11:43 +02:00
render_copy_settings Copy Render Settings: Add support for Cycles, Eevee and Workbench settings. 2023-08-25 18:41:18 +02:00
render_povray Lights: update for removal of unused Blender Internal properties 2023-07-05 18:23:51 +02:00
rigify Rigify: saving pbone custom properties to metarig 2023-09-25 21:52:56 +02:00
space_view3d_brush_menus License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
space_view3d_math_vis License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
space_view3d_pie_menus Remove bl_options from menus which caused tests to fail 2023-09-07 17:50:38 +10:00
space_view3d_spacebar_menu License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
space_view3d_stored_views License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
storypencil License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
sun_position Fix #104781: Sun Position: North line not hidden when offset changed 2023-07-28 12:27:21 +02:00
system_demo_mode License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
ui_translate UITranslate: Initial refactor/changes for repositories changes. 2023-09-15 18:08:04 +02:00
vdm_brush_baker License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
viewport_vr_preview License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
.gitignore add cycles folder to gitignore 2018-10-29 12:49:40 +01:00
add_curve_ivygen.py License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
animation_add_corrective_shape_key.py License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
bone_selection_sets.py License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
camera_turnaround.py License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
copy_global_transform.py License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
curve_assign_shapekey.py License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
curve_simplify.py License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
depsgraph_debug.py License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
development_edit_operator.py License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
development_icon_get.py License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
development_iskeyfree.py Is key Free: Adjust character width for East Asian languages 2023-09-08 13:25:56 +02:00
io_anim_camera.py License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
io_export_paper_model.py License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
io_export_pc2.py License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
io_import_BrushSet.py Import BrushSet: add filtering to only show folders and images 2023-09-25 22:06:27 +02:00
io_import_images_as_planes.py Shaders: update for Principled BSDF changes 2023-09-25 19:29:00 +02:00
lighting_dynamic_sky.py License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
lighting_tri_lights.py License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
mesh_auto_mirror.py License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
mesh_bsurfaces.py License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
mesh_f2.py License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
mesh_looptools.py License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
node_arrange.py License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
node_presets.py License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
object_boolean_tools.py License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
object_color_rules.py License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
object_edit_linked.py License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
object_skinify.py License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
paint_palette.py License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
real_snow.py License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
render_freestyle_svg.py Fix #104723: Freestyle SVG output ensure path exists 2023-08-11 05:42:04 +02:00
render_ui_animation_render.py License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
space_clip_editor_refine_solution.py License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
space_view3d_3d_navigation.py License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
space_view3d_align_tools.py License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
space_view3d_copy_attributes.py License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
space_view3d_modifier_tools.py License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
system_blend_info.py License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00
system_property_chart.py License headers: use SPDX-FileCopyrightText for all addons 2023-06-15 16:54:05 +10:00