Custom properties on Objects does not show the Enum Item Names #128555

Open
opened 2024-10-03 20:39:58 +02:00 by Daniel Gryningstjerna · 4 comments

Blender Version
Broken: version: 4.3.0 Beta, branch: blender-v4.3-release, commit date: 2024-10-02 22:37, hash: d2a802d3c665
Broken: 4.2.2
Broken: 4.1.1
Broken: 4.0
Broken: 3.6

Short description of error

import bpy

bpy.types.Object.lods = bpy.props.EnumProperty(name= "lod", items=[("LOD0","0","lod0"), 
                                                                         ("LOD1","1","LOD1"),
                                                                         ("LOD2","2","LOD2"),
                                                                         ("LOD3","3","LOD3"),
                                                                         ("LOD4","4","LOD4"),
                                                                         ("LOD5","5","LOD5"),
                                                                         ("LOD6","6","LOD6"),
                                                                         ("LOD7","7","LOD7")], options={'ENUM_FLAG'})
 
bpy.data.objects["Suzanne"].lods = set(["LOD0"])

The names does not show up, but still kinda works
image

Exact steps for others to reproduce the error

  1. Add Monkey
  2. Run script in
**Blender Version** Broken: version: 4.3.0 Beta, branch: blender-v4.3-release, commit date: 2024-10-02 22:37, hash: `d2a802d3c665` Broken: 4.2.2 Broken: 4.1.1 Broken: 4.0 Broken: 3.6 **Short description of error** ``` import bpy bpy.types.Object.lods = bpy.props.EnumProperty(name= "lod", items=[("LOD0","0","lod0"), ("LOD1","1","LOD1"), ("LOD2","2","LOD2"), ("LOD3","3","LOD3"), ("LOD4","4","LOD4"), ("LOD5","5","LOD5"), ("LOD6","6","LOD6"), ("LOD7","7","LOD7")], options={'ENUM_FLAG'}) bpy.data.objects["Suzanne"].lods = set(["LOD0"]) ``` The names does not show up, but still kinda works ![image](/attachments/e0d56675-e6a6-4179-83cf-9dda3ffbeb0a) **Exact steps for others to reproduce the error** 1. Add Monkey 2. Run script in
Daniel Gryningstjerna added the
Status
Needs Triage
Severity
Normal
Type
Bug
labels 2024-10-03 20:39:59 +02:00
Member

I can confirm the issue and will look into bisecting when it was introduced.

I can confirm the issue and will look into bisecting when it was introduced.
Alaska added
Module
Python API
Severity
High
Status
Confirmed
and removed
Severity
Normal
Status
Needs Triage
labels 2024-10-04 06:05:28 +02:00
Member

Actually, I tested it incorrectly. 4.3 works fine for me. But I had to enable Developer Extras (Which you have to do in 4.2, and which I already had turned on in 4.2).

Can you verify that developer extras is turned on for you by:

  • Opening Blender
  • Select Edit -> Preferences from the top of Blender
  • Then in the Interface tab turn on Developer Extras

System Information
Operating system: macOS-14.6.1-arm64-arm-64bit 64 Bits
Graphics card: Metal API Apple M1 Pro 1.2
Blender version: 4.3.0 Beta, branch: blender-v4.3-release, commit date: 2024-10-02 20:50, hash: 4cefac0da39b

Actually, I tested it incorrectly. 4.3 works fine for me. But I had to enable `Developer Extras` (Which you have to do in 4.2, and which I already had turned on in 4.2). Can you verify that developer extras is turned on for you by: - Opening Blender - Select `Edit -> Preferences` from the top of Blender - Then in the `Interface` tab turn on `Developer Extras` **System Information** Operating system: macOS-14.6.1-arm64-arm-64bit 64 Bits Graphics card: Metal API Apple M1 Pro 1.2 Blender version: 4.3.0 Beta, branch: blender-v4.3-release, commit date: 2024-10-02 20:50, hash: `4cefac0da39b`

Actually, I tested it incorrectly. 4.3 works fine for me. But I had to enable Developer Extras (Which you have to do in 4.2, and which I already had turned on in 4.2).

Can you verify that developer extras is turned on for you by:

  • Opening Blender
  • Select Edit -> Preferences from the top of Blender
  • Then in the Interface tab turn on Developer Extras

System Information
Operating system: macOS-14.6.1-arm64-arm-64bit 64 Bits
Graphics card: Metal API Apple M1 Pro 1.2
Blender version: 4.3.0 Beta, branch: blender-v4.3-release, commit date: 2024-10-02 20:50, hash: 4cefac0da39b

Thanks for looking into it, I can confirm it works as expected with developer extra turned on. A bit weird that it needs to be enabled, but not a bug then :)

The text, or lack of text is still wrong, so I guess thats still a bug?
image

> Actually, I tested it incorrectly. 4.3 works fine for me. But I had to enable `Developer Extras` (Which you have to do in 4.2, and which I already had turned on in 4.2). > > Can you verify that developer extras is turned on for you by: > - Opening Blender > - Select `Edit -> Preferences` from the top of Blender > - Then in the `Interface` tab turn on `Developer Extras` > > **System Information** > Operating system: macOS-14.6.1-arm64-arm-64bit 64 Bits > Graphics card: Metal API Apple M1 Pro 1.2 > Blender version: 4.3.0 Beta, branch: blender-v4.3-release, commit date: 2024-10-02 20:50, hash: `4cefac0da39b` Thanks for looking into it, I can confirm it works as expected with developer extra turned on. A bit weird that it needs to be enabled, but not a bug then :) The text, or lack of text is still wrong, so I guess thats still a bug? ![image](/attachments/3d93976e-d818-4d66-9873-6104f4f990b5)
3.7 KiB
Daniel Gryningstjerna changed title from Adding custom properties on Objects does not work in Blender 4.3 to Custom properties on Objects does show the Enum Names 2024-10-04 09:39:42 +02:00
Daniel Gryningstjerna changed title from Custom properties on Objects does show the Enum Names to Custom properties on Objects does show the Enum Item Names 2024-10-04 09:42:09 +02:00
Daniel Gryningstjerna changed title from Custom properties on Objects does show the Enum Item Names to Custom properties on Objects does not show the Enum Item Names 2024-10-04 09:42:21 +02:00
Member

Sorry it took me lo long. I can confirm that the names are missing and have been for a long time (In my testing the issue was still there in 3.6)

Sorry it took me lo long. I can confirm that the names are missing and have been for a long time (In my testing the issue was still there in 3.6)
Alaska added
Module
User Interface
Status
Confirmed
and removed
Status
Needs Information from User
labels 2024-10-11 03:52:29 +02:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
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
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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
2 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#128555
No description provided.