Blender Git Commit Log

Git Commits -> Revision e14de69

Revision e14de69 by Omar Emara (master)
August 17, 2020, 11:43 (GMT)
UI: Only draw node menu search if categories exist

Currently, the search operator in the node add menu NODE_MT_add is drawn
even if no node categories exists. This patch only draws the operator if
at least one node category passes the poll.

This patch is needed because some add-ons use custom search operator and
do not register node categories. In this case, it is undesirable to have
a search operator drawn that do nothing and is not used. One such add-on
is Animation Nodes.

Reviewed By: Jacques Lucke

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

Commit Details:

Full Hash: e14de692fc99b5e66d93c6240ec51410d087cf4d
Parent Commit: 8fda93a
Lines Changed: +15, -5

2 Modified Paths:

/release/scripts/modules/nodeitems_utils.py (+8, -0) (Diff)
/release/scripts/startup/bl_ui/space_node.py (+7, -5) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021