STL importer turns underscores into spaces. #88532
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#88532
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Linux
Graphics card: Intel
Blender Version
Broken: 2.92
Short description of error
The bundled
.STL
importer turns underscores in the filename into spaces in the object name.E.G.
Some_File.stl
becomesbpy.data.objects["Some File"]
.Both Blender and common filesystems support both underscores and spaces in the name.
It's not clear to me what tangible benefit could come from this transformation, and it adds an extra step for me to reverse it I import an object and want to re-export it with the same name.
Exact steps for others to reproduce the error
Import an
.STL
file with an underscore in its name.Added subscriber: @WCN
Added subscribers: @MikhailRachinskiy, @lichtwerk
Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'
The Addon uses
bpy.path.display_name
https://docs.blender.org/api/master/bpy.path.html#bpy.path.display_name
Personally, I find it a bit obscure as well,
display_name_from_filepath
seems like the better choice.But in the end, this seems to be working as intended, will try to get a second opinion.
CC @MikhailRachinskiy
It does seem unreasonable, I would rather keep file name intact if possible.
@lichtwerk I can handle this issue if your hands full.
Changed status from 'Needs Developer To Reproduce' to: 'Confirmed'
Please do, thx!
(we might want to mention this in the release logs since I can imagine there are people out there that have adapted to this behavior)
This issue was referenced by
d55fa2e02a
Changed status from 'Confirmed' to: 'Resolved'
Resolved by
d55fa2e02a