mirror of
https://github.com/blender/blender-addons.git
synced 2025-07-21 23:46:24 +00:00
3D-Print: use new C++ STL exporter
This commit is contained in:
@ -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",
|
||||
|
@ -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':
|
||||
|
Reference in New Issue
Block a user