3D-Print: use new C++ STL exporter

This commit is contained in:
Aras Pranckevicius
2023-12-23 23:00:28 +02:00
parent 63da8ac3f9
commit 37bc99816f
2 changed files with 5 additions and 6 deletions

View File

@ -5,7 +5,7 @@
bl_info = {
"name": "3D-Print Toolbox",
"author": "Campbell Barton",
"blender": (3, 6, 0),
"blender": (4, 1, 0),
"location": "3D View > Sidebar",
"description": "Utilities for 3D printing",
"doc_url": "{BLENDER_MANUAL_URL}/addons/mesh/3d_print_toolbox.html",

View File

@ -106,13 +106,12 @@ def write_mesh(context, report_cb):
addon_utils.enable(addon_id, default_set=False)
if export_format == 'STL':
addon_ensure("io_mesh_stl")
filepath = bpy.path.ensure_ext(filepath, ".stl")
ret = bpy.ops.export_mesh.stl(
ret = bpy.ops.wm.stl_export(
filepath=filepath,
ascii=False,
use_mesh_modifiers=True,
use_selection=True,
ascii_format=False,
apply_modifiers=True,
export_selected_objects=True,
global_scale=global_scale,
)
elif export_format == 'PLY':