Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Ramsay <smramsay>2022-07-25 21:59:54 +0300
committerBrecht Van Lommel <brecht@blender.org>2022-07-25 22:08:54 +0300
commitc27fd9ecb8aeda9c583695f7d226e4ff581d4da6 (patch)
treeda310f28ca2d5c09c20640cb7ea5423f61448358 /ant_landscape
parenta228560fcedb44811efae571a88c3dfc7985148c (diff)
Node Wrangler: use utility function to populate switch menu
Currently, the nodes in the Switch menu (Shift+S) are generated from Node Wrangler's own long static list of categories and nodes, which often goes out of sync when Blender changes. This changes to using the node_categories_iter utility which uses the correct list of available nodes from nodeitems_builtins.py. The submenu classes are now procedurally generated and registered in the same fashion as the add menu, but just with a different operator in their draw function. Removing the static lists required a couple changes outside of the Switch menu. Mostly having to compare types using the verbose node.rna_type.identifier. Includes improvements on the original patch by Benni Merz.
Diffstat (limited to 'ant_landscape')
0 files changed, 0 insertions, 0 deletions