bpy.data.* name lookups are no longer reliable #61998
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
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#61998
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?
The following script asserts on the last line when it shouldn't, caused by
456e3f00e0
Added subscriber: @ideasman42
Added subscriber: @mont29
Yes, currently this will break. If people find it fancy to use names like
F Blabla
for their IDs, sorry but I’d consider this very odd corner case that should not happen in real life. Much more unlikely than having aBlabla
local object together with aBlabla
linked one, and not being able to distinguish them in the UI ID selectors (as was the case before). You can also use completely broken meshes with booleans and claim they are not working. Or you can name your boneFoo.R
and the next oneFoo.L
, enable mirror edit, and say that it breaks your armature. etc. etc.Now, background for that behavior: UI widget (ID pointer drop-down selector) uses UI string to also lookup for the ID. So you can either cope with that on the generic ID lookup system, or you can go into that nightmarish UI code to make it properly separate ID identifier from UI name, store both, and return proper full qualified ID identifier instead of UI name as its value… If you feel like doing that, be my guest.
Sure, there are areas in Blender which are in a bad state, but this isn't reason to add more. We managed for years without this kind of hack.
Really this isn't acceptable - name look-ups must be fast and accurate, the UI must work around this. Would consider having a separate UI identifier less hackish/error prone.
Added subscriber: @JacquesLucke
Related discussion: blender/blender-addons#58641
Added subscriber: @brecht
Please revert
4669c3692c
and456e3f00e0
, and then we can add a better implementation after that.Issues like blender/blender-addons#58641, #58917 are not at all obvious for Python API users or even Blender developers, this will likely cause more bugs in the future.
Changed status from 'Open' to: 'Resolved'
Removed subscriber: @mont29
Reverted. People who like UI code can go fixing that mess the proper way if they want.