[Bf-extensions-cvs] [d55fa2e0] blender-v2.93-release: STL: fix T88532 importer replaces underscores with spaces
Mikhail Rachinskiy
noreply at git.blender.org
Wed May 26 06:20:14 CEST 2021
Commit: d55fa2e02a195275807a967989d13b99ee1bdc52
Author: Mikhail Rachinskiy
Date: Wed May 26 08:13:39 2021 +0400
Branches: blender-v2.93-release
https://developer.blender.org/rBAd55fa2e02a195275807a967989d13b99ee1bdc52
STL: fix T88532 importer replaces underscores with spaces
===================================================================
M io_mesh_stl/__init__.py
===================================================================
diff --git a/io_mesh_stl/__init__.py b/io_mesh_stl/__init__.py
index 7af1c2d1..c367946a 100644
--- a/io_mesh_stl/__init__.py
+++ b/io_mesh_stl/__init__.py
@@ -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)
More information about the Bf-extensions-cvs
mailing list