Preset name parsing issue in Property Editor --> Camera Tab --> Safe Areas Panel --> Camera Presets List
#54029
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
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
9 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#54029
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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
windows 10 pro and Quadro M4000M
Blender Version
Blender 2.79/2.78
Short description of error
Option Typo in
Property Editor --> Camera Tab --> Safe Areas Panel --> Camera Presets List
:Item
3 in 16:9
should be4:3 in 16:9
.Exact steps for others to reproduce the error
UI typo, no need of steps to reproduce it.
Added subscriber: @nge
Added subscriber: @ideasman42
Please state full name of menu item, and full name you propose.
Sorry, I should've pasted the screenshot.
Image Added!
Seems this is a drawing glitch, it displays correctly here.
Added subscriber: @pablovazquez
Must be a glitch, it displays just fine here as well.
Tested in different interface sizes in 2.79 and 2.80.
Added subscriber: @xuekepei
in non-english system this will display like this.
Added subscriber: @Leroy-Xie
windows 10, 2.79
I've confirmed this with several of my friends, with windows 7 and windows 10 platform, English and non-English version. It still display with
4:
missing.So, I guess it is a platform-related issue, and should be solved.
Added subscriber: @LazyDodo
I can confirm on windows
Added subscriber: @VukGardasevic
Also confirming on Windows.
Seems that the patterns of some single digit number_colon_ gets stripped completely. This doesn't occur if there are two digits before the "colon" pattern.
Note: seems that the Camera Presets (in
scripts\presets\camera\
)uses the digit__colon (the _ are doubled) pattern name. If this is an parsing limitation issue maybe should be added as a note somewhere.Option Typo in `Property Editor --> Camera Tab --> Safe Areas Panel --> Camera Presets List`to Preset name parsing issue in `Property Editor --> Camera Tab --> Safe Areas Panel --> Camera Presets List`Issue is from this code in bpy.types.py :
Seems that the
bpy.path.display_name(f)
truncates the f variable like in the described issue. Since f is the file name (2_colon_4_something.py
), it shows up like it does currently. Passing thefilepath
which is the full path to the preset seems to work.looks like _clean_utf8 in path.py is taking out what it thinks is the drive letter..
Added subscriber: @treybagley
Hi! Just joined and this sounds like a good first project! I repro this on my machine. What direction do we want to fix this from? Should I change the filename from
blender\release\scripts\presets\safe_areas\4_colon_3_in_16_colon_9.py
to4__colon__3__in__16__colon__9.py
to match the formatting inscripts\preset\camera
? Or do we want to change the parsing?Using double underscores should not be needed, somehow using a back-slash is messing up the logic here.
@VukGardasevic, Using
"\scripts\presets\...."
is not a valid test, since Python escapes those characters, if you want to test this user"\scripts\presets\...."
.Passing r to display name seems to work on windows with the regular "" path :)
The culprit seems to be the
_clean_utf8(name)
function and with name = _os.path.splitext(basename(name))- [x] call, and finally in thedef basename(path)
the call_os.path.basename(path_base)
does trim the name.Sorry for the multiple edits. I've overlooked the basename function call.
This issue was referenced by
d416e56e70
Changed status from 'Open' to: 'Resolved'