EnumProperty displays wrong labels when using expand=True #56435
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
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#56435
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
Win10
Blender Version
Broken: 2.79b
Worked: na
Short description of error
Labels in the dropdown box are mixed up with other elements of the tuple list (like ID), but only if you use the expand=True view.
Exact steps for others to reproduce the error
This bug is related to the already closed bugreport #50426.
I made a script where a curve can be labeled to be put in a an EnumProperty. The curve has a collection of some random numbers in a CollectionProperty. When an empty is selected a panel will appear showing the EnumProperty containing all the labeled curves and a EnumProperty containing the random values belonging to that curve. Each time you select another curve, this list needs to be updated also. The EnumProperty with the random numbers shows fine in a drop down box, but when I create buttons of it, with the option expand=True, the labels are all mixed up (see attached blender file).
I hope I don't do anything wrong and do not bother you with stupid bugreports !!
test_enumprop.py
Added subscriber: @marianne
Added subscriber: @mont29
Changed status from 'Open' to: 'Archived'
We do not handle user support on this tracker, only bug reports. User forums like blenderartists.org or blender.stackexchange.com should be used for that matter.
https://docs.blender.org/api/master/bpy.props.html#bpy.props.EnumProperty