EnumProperty weird behavior using ENUM_FLAG option with number
items argument #52090
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
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#52090
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 x64
Renderer: GeForce GTX 860M/PCIe/SSE2
Blender Version
Broken: 2.78.5 c2d285f
Short description of error
EnumProperty
shows weird behavior when usingENUM_FLAG
option along withnumber
items argument.Exact steps for others to reproduce the error
number
is 0, it won't select.number
increment from 1, 3rd element affects the state of other elementsnumber
increment from 1, but 3 is skipped, enum works OKnumber
arguments, enum works OK5th case has nothing to do with the bug report, but is there a reason why item's
icon
argument requires thenumber
argument?Changed status to: 'Open'
Added subscriber: @MikhailRachinskiy
This issue was referenced by blender/blender@d268cad06a
Added subscriber: @brecht
I updated the documentation to describe the reason for this behavior, the numbers must be powers of two:
The icon argument being required is indeed not great, for historical reasons a tuple of size 4 expects a number instead of an icon. Maybe it should have been the other way around, but like the powers of two requirement that would mean breaking backwards compatibility.
Changed status from 'Open' to: 'Resolved'