Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/node.c
| Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | |||||
| #include "BLI_ghash.h" | #include "BLI_ghash.h" | ||||
| #include "BLI_threads.h" | #include "BLI_threads.h" | ||||
| #include "RNA_access.h" | #include "RNA_access.h" | ||||
| #include "RNA_define.h" | #include "RNA_define.h" | ||||
| #include "NOD_common.h" | #include "NOD_common.h" | ||||
| #include "NOD_composite.h" | #include "NOD_composite.h" | ||||
| #include "NOD_function.h" | |||||
| #include "NOD_shader.h" | #include "NOD_shader.h" | ||||
| #include "NOD_simulation.h" | #include "NOD_simulation.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 4,159 Lines • ▼ Show 20 Lines | static void registerSimulationNodes(void) | ||||
| register_node_type_sim_multi_execute(); | register_node_type_sim_multi_execute(); | ||||
| register_node_type_sim_particle_mesh_emitter(); | register_node_type_sim_particle_mesh_emitter(); | ||||
| register_node_type_sim_particle_mesh_collision_event(); | register_node_type_sim_particle_mesh_collision_event(); | ||||
| register_node_type_sim_emit_particles(); | register_node_type_sim_emit_particles(); | ||||
| register_node_type_sim_simulation_time(); | register_node_type_sim_simulation_time(); | ||||
| register_node_type_sim_particle_attribute(); | register_node_type_sim_particle_attribute(); | ||||
| } | } | ||||
| static void registerFunctionNodes(void) | |||||
| { | |||||
| register_node_type_fn_boolean_math(); | |||||
| register_node_type_fn_float_compare(); | |||||
| register_node_type_fn_switch(); | |||||
| } | |||||
| void init_nodesystem(void) | void init_nodesystem(void) | ||||
| { | { | ||||
| nodetreetypes_hash = BLI_ghash_str_new("nodetreetypes_hash gh"); | nodetreetypes_hash = BLI_ghash_str_new("nodetreetypes_hash gh"); | ||||
| nodetypes_hash = BLI_ghash_str_new("nodetypes_hash gh"); | nodetypes_hash = BLI_ghash_str_new("nodetypes_hash gh"); | ||||
| nodesockettypes_hash = BLI_ghash_str_new("nodesockettypes_hash gh"); | nodesockettypes_hash = BLI_ghash_str_new("nodesockettypes_hash gh"); | ||||
| register_undefined_types(); | register_undefined_types(); | ||||
| register_standard_node_socket_types(); | register_standard_node_socket_types(); | ||||
| register_node_tree_type_cmp(); | register_node_tree_type_cmp(); | ||||
| register_node_tree_type_sh(); | register_node_tree_type_sh(); | ||||
| register_node_tree_type_tex(); | register_node_tree_type_tex(); | ||||
| register_node_tree_type_sim(); | register_node_tree_type_sim(); | ||||
| register_node_type_frame(); | register_node_type_frame(); | ||||
| register_node_type_reroute(); | register_node_type_reroute(); | ||||
| register_node_type_group_input(); | register_node_type_group_input(); | ||||
| register_node_type_group_output(); | register_node_type_group_output(); | ||||
| registerCompositNodes(); | registerCompositNodes(); | ||||
| registerShaderNodes(); | registerShaderNodes(); | ||||
| registerTextureNodes(); | registerTextureNodes(); | ||||
| registerSimulationNodes(); | registerSimulationNodes(); | ||||
| registerFunctionNodes(); | |||||
| } | } | ||||
| void free_nodesystem(void) | void free_nodesystem(void) | ||||
| { | { | ||||
| if (nodetypes_hash) { | if (nodetypes_hash) { | ||||
| NODE_TYPES_BEGIN (nt) { | NODE_TYPES_BEGIN (nt) { | ||||
| if (nt->rna_ext.free) { | if (nt->rna_ext.free) { | ||||
| nt->rna_ext.free(nt->rna_ext.data); | nt->rna_ext.free(nt->rna_ext.data); | ||||
| ▲ Show 20 Lines • Show All 125 Lines • Show Last 20 Lines | |||||