Geometry Nodes: use index field implicitly in Set ID node

That makes the node more useful by default.
One use case is to delete some points after the Set ID node, then instance
with some randomness. Now when deleting different points, the
randomness will remain stable.
This commit is contained in:
Jacques Lucke
2021-10-27 15:48:53 +02:00
parent ef6e03c8e0
commit 383985a91b

View File

@@ -22,7 +22,7 @@ static void geo_node_set_id_declare(NodeDeclarationBuilder &b)
{
b.add_input<decl::Geometry>("Geometry");
b.add_input<decl::Bool>("Selection").default_value(true).hide_value().supports_field();
b.add_input<decl::Int>("ID").supports_field();
b.add_input<decl::Int>("ID").implicit_field();
b.add_output<decl::Geometry>("Geometry");
}