Blender Git Commit Log

Git Commits -> Revision 7d0765c

Revision 7d0765c by Julian Eisel (master)
July 28, 2021, 12:44 (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: 7d0765cbdcf272f901c80fb9fd765428fc89ba02
Parent Commit: 8e9d06f
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