STL: fix T88532 importer replaces underscores with spaces

This commit is contained in:
Mikhail Rachinskiy 2021-05-26 08:13:39 +04:00
parent 7867fe8bb3
commit d55fa2e02a
Notes: blender-bot 2023-02-14 18:36:54 +01:00
Referenced by issue #88532, STL importer turns underscores into spaces.
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ class ImportSTL(Operator, ImportHelper):
bpy.ops.object.select_all(action='DESELECT')
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)
tri_nors = tri_nors if self.use_facet_normal else None
blender_utils.create_and_link_mesh(objName, tris, tri_nors, pts, global_matrix)