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
29 lines
570 B
C++
29 lines
570 B
C++
/* SPDX-FileCopyrightText: 2023 Blender Authors
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
#pragma once
|
|
|
|
#include <string.h>
|
|
|
|
#include "BLI_math_vector.hh"
|
|
#include "BLI_utildefines.h"
|
|
|
|
#include "MEM_guardedalloc.h"
|
|
|
|
#include "DNA_node_types.h"
|
|
|
|
#include "BKE_node.hh"
|
|
|
|
#include "NOD_multi_function.hh"
|
|
#include "NOD_register.hh"
|
|
#include "NOD_socket_declarations.hh"
|
|
|
|
#include "node_util.hh"
|
|
|
|
#include "FN_multi_function_builder.hh"
|
|
|
|
#include "RNA_access.hh"
|
|
|
|
void fn_node_type_base(blender::bke::bNodeType *ntype, std::string idname, int type, short nclass);
|