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:
authorSamuli Raivio <bqqbarbhg>2022-07-11 12:56:49 +0300
committerBastien Montagne <bastien@blender.org>2022-07-11 12:56:49 +0300
commit7a8502871c34db0343cc7de52d6b49b15a84238a (patch)
tree17e5cd1c9cbcf302b1440937e8392bdcfca55b9f /io_scene_fbx/export_fbx_bin.py
parente5d8781f544326a59c7892da2adf35a5ba815c02 (diff)
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
Diffstat (limited to 'io_scene_fbx/export_fbx_bin.py')
-rw-r--r--io_scene_fbx/export_fbx_bin.py4
1 files changed, 2 insertions, 2 deletions
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)