Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/geometry/nodes/legacy/node_geo_raycast.cc
| Show First 20 Lines • Show All 298 Lines • ▼ Show 20 Lines | for (const GeometryComponentType type : types) { | ||||
| } | } | ||||
| } | } | ||||
| params.set_output("Geometry", geometry_set); | params.set_output("Geometry", geometry_set); | ||||
| } | } | ||||
| } // namespace blender::nodes | } // namespace blender::nodes | ||||
| void register_node_type_geo_raycast() | void register_node_type_geo_legacy_raycast() | ||||
| { | { | ||||
| static bNodeType ntype; | static bNodeType ntype; | ||||
| geo_node_type_base(&ntype, GEO_NODE_LEGACY_RAYCAST, "Raycast", NODE_CLASS_GEOMETRY, 0); | geo_node_type_base(&ntype, GEO_NODE_LEGACY_RAYCAST, "Raycast", NODE_CLASS_GEOMETRY, 0); | ||||
| node_type_size_preset(&ntype, NODE_SIZE_LARGE); | node_type_size_preset(&ntype, NODE_SIZE_LARGE); | ||||
| node_type_init(&ntype, blender::nodes::geo_node_raycast_init); | node_type_init(&ntype, blender::nodes::geo_node_raycast_init); | ||||
| node_type_update(&ntype, blender::nodes::geo_node_raycast_update); | node_type_update(&ntype, blender::nodes::geo_node_raycast_update); | ||||
| node_type_storage( | node_type_storage( | ||||
| &ntype, "NodeGeometryRaycast", node_free_standard_storage, node_copy_standard_storage); | &ntype, "NodeGeometryRaycast", node_free_standard_storage, node_copy_standard_storage); | ||||
| ntype.declare = blender::nodes::geo_node_raycast_declare; | ntype.declare = blender::nodes::geo_node_raycast_declare; | ||||
| ntype.geometry_node_execute = blender::nodes::geo_node_raycast_exec; | ntype.geometry_node_execute = blender::nodes::geo_node_raycast_exec; | ||||
| ntype.draw_buttons = blender::nodes::geo_node_raycast_layout; | ntype.draw_buttons = blender::nodes::geo_node_raycast_layout; | ||||
| nodeRegisterType(&ntype); | nodeRegisterType(&ntype); | ||||
| } | } | ||||