Refactor: Nodes: avoid using NOD_static_types.hh when creating node types

This removes the second to last usage of `NOD_static_types.hh` which we intend
to remove. A nice benefit is that the idname is now finally more explicit when a
node is registered. Previously it was difficult to search for the definition of
a node in the code when one had only the idname, which is the main identifier
for nodes.

The main change is in `node_type_base`.

Pull Request: https://projects.blender.org/blender/blender/pulls/132815
This commit is contained in:
Jacques Lucke
2025-01-09 12:19:57 +01:00
parent a46def32b4
commit 0fa4c6da18
461 changed files with 880 additions and 524 deletions

View File

@@ -25,4 +25,4 @@
#include "RNA_access.hh"
void fn_node_type_base(blender::bke::bNodeType *ntype, int type, short nclass);
void fn_node_type_base(blender::bke::bNodeType *ntype, std::string idname, int type, short nclass);