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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user