Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/geometry/nodes/node_geo_attribute_capture.cc
| Show First 20 Lines • Show All 228 Lines • ▼ Show 20 Lines | |||||
| void register_node_type_geo_attribute_capture() | void register_node_type_geo_attribute_capture() | ||||
| { | { | ||||
| namespace file_ns = blender::nodes::node_geo_attribute_capture_cc; | namespace file_ns = blender::nodes::node_geo_attribute_capture_cc; | ||||
| static bNodeType ntype; | static bNodeType ntype; | ||||
| geo_node_type_base( | geo_node_type_base( | ||||
| &ntype, GEO_NODE_CAPTURE_ATTRIBUTE, "Capture Attribute", NODE_CLASS_ATTRIBUTE, 0); | &ntype, GEO_NODE_CAPTURE_ATTRIBUTE, "Capture Attribute", NODE_CLASS_ATTRIBUTE); | ||||
| node_type_storage(&ntype, | node_type_storage(&ntype, | ||||
| "NodeGeometryAttributeCapture", | "NodeGeometryAttributeCapture", | ||||
| node_free_standard_storage, | node_free_standard_storage, | ||||
| node_copy_standard_storage); | node_copy_standard_storage); | ||||
| node_type_init(&ntype, file_ns::node_init); | node_type_init(&ntype, file_ns::node_init); | ||||
| node_type_update(&ntype, file_ns::node_update); | node_type_update(&ntype, file_ns::node_update); | ||||
| ntype.declare = file_ns::node_declare; | ntype.declare = file_ns::node_declare; | ||||
| ntype.geometry_node_execute = file_ns::node_geo_exec; | ntype.geometry_node_execute = file_ns::node_geo_exec; | ||||
| ntype.draw_buttons = file_ns::node_layout; | ntype.draw_buttons = file_ns::node_layout; | ||||
| ntype.gather_link_search_ops = file_ns::node_gather_link_searches; | ntype.gather_link_search_ops = file_ns::node_gather_link_searches; | ||||
| nodeRegisterType(&ntype); | nodeRegisterType(&ntype); | ||||
| } | } | ||||