Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/geometry/nodes/legacy/node_geo_edge_split.cc
| Show First 20 Lines • Show All 72 Lines • ▼ Show 20 Lines | static void geo_node_edge_split_exec(GeoNodeExecParams params) | ||||
| Mesh *mesh_out = doEdgeSplit(mesh_in, &emd); | Mesh *mesh_out = doEdgeSplit(mesh_in, &emd); | ||||
| geometry_set.replace_mesh(mesh_out); | geometry_set.replace_mesh(mesh_out); | ||||
| params.set_output("Geometry", std::move(geometry_set)); | params.set_output("Geometry", std::move(geometry_set)); | ||||
| } | } | ||||
| } // namespace blender::nodes | } // namespace blender::nodes | ||||
| void register_node_type_geo_edge_split() | void register_node_type_geo_legacy_edge_split() | ||||
| { | { | ||||
| static bNodeType ntype; | static bNodeType ntype; | ||||
| geo_node_type_base(&ntype, GEO_NODE_LEGACY_EDGE_SPLIT, "Edge Split", NODE_CLASS_GEOMETRY, 0); | geo_node_type_base(&ntype, GEO_NODE_LEGACY_EDGE_SPLIT, "Edge Split", NODE_CLASS_GEOMETRY, 0); | ||||
| ntype.geometry_node_execute = blender::nodes::geo_node_edge_split_exec; | ntype.geometry_node_execute = blender::nodes::geo_node_edge_split_exec; | ||||
| ntype.declare = blender::nodes::geo_node_edge_split_declare; | ntype.declare = blender::nodes::geo_node_edge_split_declare; | ||||
| nodeRegisterType(&ntype); | nodeRegisterType(&ntype); | ||||
| } | } | ||||