Skip to content
Snippets Groups Projects
Commit ea587cff authored by Mikhail Rachinskiy's avatar Mikhail Rachinskiy
Browse files

Merge branch 'blender-v2.93-release' into master

parents fad5186b d55fa2e0
No related branches found
No related tags found
No related merge requests found
...@@ -139,7 +139,7 @@ class ImportSTL(Operator, ImportHelper): ...@@ -139,7 +139,7 @@ class ImportSTL(Operator, ImportHelper):
bpy.ops.object.select_all(action='DESELECT') bpy.ops.object.select_all(action='DESELECT')
for path in paths: for path in paths:
objName = bpy.path.display_name(os.path.basename(path)) objName = bpy.path.display_name_from_filepath(path)
tris, tri_nors, pts = stl_utils.read_stl(path) tris, tri_nors, pts = stl_utils.read_stl(path)
tri_nors = tri_nors if self.use_facet_normal else None tri_nors = tri_nors if self.use_facet_normal else None
blender_utils.create_and_link_mesh(objName, tris, tri_nors, pts, global_matrix) blender_utils.create_and_link_mesh(objName, tris, tri_nors, pts, global_matrix)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment