Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/texture/nodes/node_texture_common.cc
| Show First 20 Lines • Show All 151 Lines • ▼ Show 20 Lines | void register_node_type_tex_group(void) | ||||
| ntype.poll_instance = node_group_poll_instance; | ntype.poll_instance = node_group_poll_instance; | ||||
| ntype.insert_link = node_insert_link_default; | ntype.insert_link = node_insert_link_default; | ||||
| ntype.rna_ext.srna = RNA_struct_find("TextureNodeGroup"); | ntype.rna_ext.srna = RNA_struct_find("TextureNodeGroup"); | ||||
| BLI_assert(ntype.rna_ext.srna != nullptr); | BLI_assert(ntype.rna_ext.srna != nullptr); | ||||
| RNA_struct_blender_type_set(ntype.rna_ext.srna, &ntype); | RNA_struct_blender_type_set(ntype.rna_ext.srna, &ntype); | ||||
| node_type_size(&ntype, 140, 60, 400); | node_type_size(&ntype, 140, 60, 400); | ||||
| ntype.labelfunc = node_group_label; | ntype.labelfunc = node_group_label; | ||||
| ntype.group_update_func = node_group_update; | ntype.declare_dynamic = blender::nodes::node_group_declare_dynamic; | ||||
| ntype.init_exec_fn = group_initexec; | ntype.init_exec_fn = group_initexec; | ||||
| ntype.free_exec_fn = group_freeexec; | ntype.free_exec_fn = group_freeexec; | ||||
| ntype.exec_fn = group_execute; | ntype.exec_fn = group_execute; | ||||
| nodeRegisterType(&ntype); | nodeRegisterType(&ntype); | ||||
| } | } | ||||