Skip to content

Commit

Permalink
Merge pull request #4067 from Bforartists/4066-user-interface-import-…
Browse files Browse the repository at this point in the history
…export-stl-and-ply-missed-entries-causing-error-in-console

fix #4066-user-interface-import-export-stl-and-ply-missed-entries-cau…
  • Loading branch information
Draise14 committed Feb 8, 2024
2 parents 09ece58 + a6c6895 commit f19b877
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions scripts/startup/bl_ui/space_toolbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,8 @@ def draw_menus(layout, context):
if addon_prefs.file_import_uncommon:

row = layout.row(align=True)
row.operator("import_mesh.stl", text="", icon='LOAD_STL')
row.operator("import_mesh.ply", text="", icon='LOAD_PLY')
row.operator("wm.stl_import", text="", icon='LOAD_STL')
row.operator("wm.ply_import", text="", icon='LOAD_PLY')
row.operator("import_scene.x3d", text="", icon='LOAD_X3D')
row.operator("import_curve.svg", text="", icon='LOAD_SVG')

Expand All @@ -381,8 +381,8 @@ def draw_menus(layout, context):
if addon_prefs.file_export_uncommon:

row = layout.row(align=True)
row.operator("export_mesh.stl", text="", icon='SAVE_STL')
row.operator("export_mesh.ply", text="", icon='SAVE_PLY')
row.operator("wm.stl_export", text="", icon='SAVE_STL')
row.operator("wm.ply_export", text="", icon='SAVE_PLY')
row.operator("export_scene.x3d", text="", icon='SAVE_X3D')

## ------------------ Render
Expand Down
4 changes: 2 additions & 2 deletions scripts/startup/bl_ui/space_topbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ def draw(self, _context):
if bpy.app.build_options.io_wavefront_obj:
self.layout.operator("wm.obj_import", text="Wavefront (.obj)", icon="LOAD_OBJ")
if bpy.app.build_options.io_ply:
self.layout.operator("wm.ply_import", text="Stanford PLY (.ply) (experimental)", icon="LOAD_PLY")
self.layout.operator("wm.ply_import", text="Stanford PLY (.ply)", icon="LOAD_PLY")
if bpy.app.build_options.io_stl:
self.layout.operator("wm.stl_import", text="STL (.stl)", icon="LOAD_STL")

Expand Down Expand Up @@ -431,7 +431,7 @@ def draw(self, _context):
if bpy.app.build_options.io_ply:
self.layout.operator("wm.ply_export", text="Stanford PLY (.ply)", icon = "SAVE_PLY")
if bpy.app.build_options.io_stl:
self.layout.operator("wm.stl_export", text="STL (.stl)")
self.layout.operator("wm.stl_export", text="STL (.stl)",icon = "SAVE_STL")


class TOPBAR_MT_file_external_data(Menu):
Expand Down

0 comments on commit f19b877

Please sign in to comment.