EnumProperty displays wrong labels when using expand=True #56435

Closed
opened 2018-08-17 12:33:11 +02:00 by Marianne Zijderveld · 4 comments

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

**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](https://archive.blender.org/developer/F4257516/test_enumprop.py)

Added subscriber: @marianne

Added subscriber: @marianne

Added subscriber: @mont29

Added subscriber: @mont29

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Bastien Montagne self-assigned this 2018-08-17 17:38:12 +02:00

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

We do not handle user support on this tracker, only bug reports. User forums like [blenderartists.org](http:*blenderartists.org/) or [blender.stackexchange.com](http:*blender.stackexchange.com/) should be used for that matter. https://docs.blender.org/api/master/bpy.props.html#bpy.props.EnumProperty
Sign in to join this conversation.
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-addons#56435
No description provided.