From 7a8502871c34db0343cc7de52d6b49b15a84238a Mon Sep 17 00:00:00 2001 From: Samuli Raivio Date: Mon, 11 Jul 2022 11:56:49 +0200 Subject: Fix FBX IO handling of BoundaryRule enum values. Support for BoundaryRule (how to handle edges/vertices in subdivision surface) was added in rBA9a285d80167f, but the values between 'CreaseAll' and 'CreaseEdge' were inverted. Reviewed By: mont29 Differential Revision: D15035 --- io_scene_fbx/export_fbx_bin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '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 ae7be61c..c34a5182 100644 --- a/io_scene_fbx/export_fbx_bin.py +++ b/io_scene_fbx/export_fbx_bin.py @@ -865,9 +865,9 @@ def fbx_data_mesh_elements(root, me_obj, scene_data, done_meshes): if last_subsurf: elem_data_single_int32(geom, b"Smoothness", 2) # Display control mesh and smoothed if last_subsurf.boundary_smooth == "PRESERVE_CORNERS": - elem_data_single_int32(geom, b"BoundaryRule", 2) # CreaseAll + elem_data_single_int32(geom, b"BoundaryRule", 1) # CreaseAll else: - elem_data_single_int32(geom, b"BoundaryRule", 1) # CreaseEdge + elem_data_single_int32(geom, b"BoundaryRule", 2) # CreaseEdge elem_data_single_int32(geom, b"PreviewDivisionLevels", last_subsurf.levels) elem_data_single_int32(geom, b"RenderDivisionLevels", last_subsurf.render_levels) -- cgit v1.2.3 From 99576a8478e1ea90bb112e1fd2ff6aa851c05bdc Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Tue, 9 Aug 2022 19:23:13 +0200 Subject: Cleanup: fix typos in blender addons Contributed by luzpaz. Differential Revision: https://developer.blender.org/D15646 --- io_scene_fbx/export_fbx_bin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '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 c34a5182..f560b19c 100644 --- a/io_scene_fbx/export_fbx_bin.py +++ b/io_scene_fbx/export_fbx_bin.py @@ -1528,7 +1528,7 @@ def fbx_data_armature_elements(root, arm_obj, scene_data): elem_data_single_int32(fbx_skin, b"Version", FBX_DEFORMER_SKIN_VERSION) elem_data_single_float64(fbx_skin, b"Link_DeformAcuracy", 50.0) # Only vague idea what it is... - # Pre-process vertex weights (also to check vertices assigned ot more than four bones). + # Pre-process vertex weights (also to check vertices assigned to more than four bones). ob = ob_obj.bdata bo_vg_idx = {bo_obj.bdata.name: ob.vertex_groups[bo_obj.bdata.name].index for bo_obj in clusters.keys() if bo_obj.bdata.name in ob.vertex_groups} -- cgit v1.2.3