Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/node.cc
| Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | |||||
| #include "RNA_access.h" | #include "RNA_access.h" | ||||
| #include "RNA_define.h" | #include "RNA_define.h" | ||||
| #include "RNA_prototypes.h" | #include "RNA_prototypes.h" | ||||
| #include "NOD_common.h" | #include "NOD_common.h" | ||||
| #include "NOD_composite.h" | #include "NOD_composite.h" | ||||
| #include "NOD_geometry.h" | #include "NOD_geometry.h" | ||||
| #include "NOD_geometry_nodes_lazy_function.hh" | #include "NOD_geometry_nodes_lazy_function.hh" | ||||
| #include "NOD_internal_link_builder.hh" | |||||
| #include "NOD_node_declaration.hh" | #include "NOD_node_declaration.hh" | ||||
| #include "NOD_register.hh" | #include "NOD_register.hh" | ||||
| #include "NOD_shader.h" | #include "NOD_shader.h" | ||||
| #include "NOD_socket.h" | #include "NOD_socket.h" | ||||
| #include "NOD_texture.h" | #include "NOD_texture.h" | ||||
| #include "DEG_depsgraph.h" | #include "DEG_depsgraph.h" | ||||
| #include "DEG_depsgraph_build.h" | #include "DEG_depsgraph_build.h" | ||||
| ▲ Show 20 Lines • Show All 1,292 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| void nodeRegisterType(bNodeType *nt) | void nodeRegisterType(bNodeType *nt) | ||||
| { | { | ||||
| /* debug only: basic verification of registered types */ | /* debug only: basic verification of registered types */ | ||||
| BLI_assert(nt->idname[0] != '\0'); | BLI_assert(nt->idname[0] != '\0'); | ||||
| BLI_assert(nt->poll != nullptr); | BLI_assert(nt->poll != nullptr); | ||||
| nt->internal_link_function = blender::nodes::internal_link::default_linker; | |||||
| if (nt->declare && !nt->declare_dynamic) { | if (nt->declare && !nt->declare_dynamic) { | ||||
| if (nt->fixed_declaration == nullptr) { | if (nt->fixed_declaration == nullptr) { | ||||
| nt->fixed_declaration = new blender::nodes::NodeDeclaration(); | nt->fixed_declaration = new blender::nodes::NodeDeclaration(); | ||||
| blender::nodes::build_node_declaration(*nt, *nt->fixed_declaration); | blender::nodes::build_node_declaration(*nt, *nt->fixed_declaration); | ||||
| } | } | ||||
| } | } | ||||
| BLI_ghash_insert(nodetypes_hash, nt->idname, nt); | BLI_ghash_insert(nodetypes_hash, nt->idname, nt); | ||||
| ▲ Show 20 Lines • Show All 2,805 Lines • Show Last 20 Lines | |||||