diff options
author | Hans Goudey <h.goudey@me.com> | 2022-04-26 18:17:53 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-04-26 18:18:30 +0300 |
commit | 3e7ee3f3bcd61a1fb1395683ba7ecc430c9932db (patch) | |
tree | 9751d8d412a97259bc4e9056b74825e5a5589bd6 /source/blender/nodes | |
parent | ae94e36cfb2f3bc9a99b638782092d9c71d4b3c7 (diff) |
Geometry Nodes: Move named attribute nodes out of experimental
Remove the experimental option for named attributes nodes show they are
always available.
Ref T91742
Diffstat (limited to 'source/blender/nodes')
3 files changed, 3 insertions, 20 deletions
diff --git a/source/blender/nodes/geometry/nodes/node_geo_input_named_attribute.cc b/source/blender/nodes/geometry/nodes/node_geo_input_named_attribute.cc index 6cb9ca642ef..72dfff7cb39 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_input_named_attribute.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_input_named_attribute.cc @@ -54,9 +54,6 @@ static void node_update(bNodeTree *ntree, bNode *node) static void node_gather_link_searches(GatherLinkSearchOpParams ¶ms) { - if (U.experimental.use_named_attribute_nodes == 0) { - return; - } const NodeDeclaration &declaration = *params.node_type().fixed_declaration; search_link_ops_for_declarations(params, declaration.inputs()); @@ -81,7 +78,7 @@ static void node_geo_exec(GeoNodeExecParams params) const std::string name = params.extract_input<std::string>("Name"); - if (!U.experimental.use_named_attribute_nodes || name.empty()) { + if (name.empty()) { params.set_default_remaining_outputs(); return; } diff --git a/source/blender/nodes/geometry/nodes/node_geo_remove_attribute.cc b/source/blender/nodes/geometry/nodes/node_geo_remove_attribute.cc index 98b66dda24d..effeac5a37f 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_remove_attribute.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_remove_attribute.cc @@ -13,21 +13,11 @@ static void node_declare(NodeDeclarationBuilder &b) b.add_output<decl::Geometry>(N_("Geometry")); } -static void node_gather_link_searches(GatherLinkSearchOpParams ¶ms) -{ - if (U.experimental.use_named_attribute_nodes == 0) { - return; - } - const NodeDeclaration &declaration = *params.node_type().fixed_declaration; - search_link_ops_for_declarations(params, declaration.inputs()); - search_link_ops_for_declarations(params, declaration.outputs()); -} - static void node_geo_exec(GeoNodeExecParams params) { GeometrySet geometry_set = params.extract_input<GeometrySet>("Geometry"); const std::string name = params.extract_input<std::string>("Name"); - if (name.empty() || !U.experimental.use_named_attribute_nodes) { + if (name.empty()) { params.set_output("Geometry", std::move(geometry_set)); return; } @@ -88,6 +78,5 @@ void register_node_type_geo_remove_attribute() ntype.declare = file_ns::node_declare; node_type_size(&ntype, 170, 100, 700); ntype.geometry_node_execute = file_ns::node_geo_exec; - ntype.gather_link_search_ops = file_ns::node_gather_link_searches; nodeRegisterType(&ntype); } diff --git a/source/blender/nodes/geometry/nodes/node_geo_store_named_attribute.cc b/source/blender/nodes/geometry/nodes/node_geo_store_named_attribute.cc index b51fc063ab8..de206be5367 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_store_named_attribute.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_store_named_attribute.cc @@ -65,9 +65,6 @@ static void node_update(bNodeTree *ntree, bNode *node) static void node_gather_link_searches(GatherLinkSearchOpParams ¶ms) { - if (U.experimental.use_named_attribute_nodes == 0) { - return; - } const NodeDeclaration &declaration = *params.node_type().fixed_declaration; search_link_ops_for_declarations(params, declaration.inputs().take_front(2)); @@ -130,7 +127,7 @@ static void node_geo_exec(GeoNodeExecParams params) GeometrySet geometry_set = params.extract_input<GeometrySet>("Geometry"); std::string name = params.extract_input<std::string>("Name"); - if (!U.experimental.use_named_attribute_nodes || name.empty()) { + if (name.empty()) { params.set_output("Geometry", std::move(geometry_set)); return; } |