Shading Nodes: Refactor Add menu #111798

Merged
Pablo Vazquez merged 2 commits from pablovazquez/blender:ui-nodes-shading-menu-refactor into main 2023-09-01 20:46:19 +02:00

2 Commits

Author SHA1 Message Date
Pablo Vazquez 1e704a27ce Address feedback
* Use lowercase for layout category name.
* Add Group category
2023-09-01 20:28:43 +02:00
Pablo Vazquez e8d9b2aa34 Shading Nodes: Refactor Add menu
Refactor the Add menu in Shading nodes, with manually created menus,
inspired by Geometry Nodes and more recently the Compositor.

Minor sorting adjustments by splitting categories in groups, with
separators in between groups, and sorted alphabetically. Shading
node group assets are also populated in the menus.

This is the first part of the re-organization of the Add menu project,
proposal coming in another patch after this.

This patch also:
* Move the Layout menu to a more generic bit that can be shared
  with Geometry Nodes and the Compositor.
* Add a poll to add_node_type so nodes show up or not by mode
  or render engine.

Part of #111746
2023-09-01 18:40:52 +02:00