@@ -700,6 +700,7 @@ def export_object(obj, file_path, scene_props):
700
700
object_types = {"MESH" },
701
701
path_mode = "COPY" ,
702
702
embed_textures = True ,
703
+ mesh_smooth_type = scene_props .mesh_export_smoothing ,
703
704
use_mesh_modifiers = False , # Handled by apply_mesh_modifiers
704
705
use_triangles = False , # Handled by triangulate_mesh
705
706
)
@@ -712,6 +713,8 @@ def export_object(obj, file_path, scene_props):
712
713
up_axis = scene_props .mesh_export_coord_up ,
713
714
export_materials = True ,
714
715
path_mode = "COPY" ,
716
+ export_normals = True ,
717
+ export_smooth_groups = True ,
715
718
apply_modifiers = False , # Handled by apply_mesh_modifiers
716
719
export_triangulated_mesh = False , # Handled triangulate_mesh
717
720
)
@@ -722,6 +725,7 @@ def export_object(obj, file_path, scene_props):
722
725
export_format = "GLTF_SEPARATE" , # or GLB
723
726
export_apply = False , # Transforms/Mods applied manually
724
727
export_attributes = True ,
728
+ export_normals = True ,
725
729
export_extras = True ,
726
730
export_yup = (scene_props .mesh_export_coord_up == "Y" ),
727
731
# Need to add a prop to track material quality
@@ -738,6 +742,7 @@ def export_object(obj, file_path, scene_props):
738
742
scene_props .mesh_export_coord_up ),
739
743
export_meshes = True ,
740
744
export_materials = True ,
745
+ export_normals = True ,
741
746
generate_preview_surface = False ,
742
747
use_instancing = False ,
743
748
evaluation_mode = "RENDER" ,
@@ -752,6 +757,7 @@ def export_object(obj, file_path, scene_props):
752
757
bpy .ops .wm .stl_export (
753
758
filepath = export_filepath ,
754
759
export_selected_objects = True ,
760
+ use_selection = True ,
755
761
global_scale = 1.0 , # Scale applied setup_export_object
756
762
forward_axis = scene_props .mesh_export_coord_forward ,
757
763
up_axis = scene_props .mesh_export_coord_up ,
0 commit comments