STL importer turns underscores into spaces. #88532

Closed
opened 2021-05-24 20:10:25 +02:00 by Will · 10 comments

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 becomes bpy.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.

**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` becomes `bpy.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.
Author

Added subscriber: @WCN

Added subscriber: @WCN
Member

Added subscribers: @MikhailRachinskiy, @lichtwerk

Added subscribers: @MikhailRachinskiy, @lichtwerk
Member

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'
Member

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

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.

It does seem unreasonable, I would rather keep file name intact if possible. @lichtwerk I can handle this issue if your hands full.
Member

Changed status from 'Needs Developer To Reproduce' to: 'Confirmed'

Changed status from 'Needs Developer To Reproduce' to: 'Confirmed'
Member

In #88532#1165959, @MikhailRachinskiy wrote:
@lichtwerk I can handle this issue if your hands full.

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)

> In #88532#1165959, @MikhailRachinskiy wrote: > @lichtwerk I can handle this issue if your hands full. 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

This issue was referenced by d55fa2e02a195275807a967989d13b99ee1bdc52
Mikhail Rachinskiy self-assigned this 2021-05-26 06:28:06 +02:00

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'

Resolved by d55fa2e02a

Resolved by d55fa2e02a
Sign in to join this conversation.
No Milestone
No project
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#88532
No description provided.