Blender Git Commit Log

Git Commits -> Revision 43f0494

July 30, 2021, 14:56 (GMT)
Fix menu poll function being ignored for UILayout.menu

Using `UILayout.menu()` [1] or `UILayout.menu_contents() [2], the menu
would just always be added, the `poll()` check not being executed. As
API user I would expect the `poll()` to deterimine visiblity of the
menu.

[1] https://docs.blender.org/api/current/bpy.types.UILayout.html#bpy.types.UILayout.menu
[2] https://docs.blender.org/api/current/bpy.types.UILayout.html#bpy.types.UILayout.menu_contents

Differential Revision: https://developer.blender.org/D12053

Reviewed by: Campbell Barton

Commit Details:

Full Hash: 43f0494929987d7f8c6c4a853f7e74a4478bb15b
Parent Commit: 2c9e8a2
Committed By: Fabian Schempp
Lines Changed: +9, -0

1 Modified Path:

/source/blender/editors/interface/interface_layout.c (+9, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021