Geometry Nodes: remove default item in Field to Grid node

This item is usually more annoying than useful. If one doesn't need it, one has
to go to the side bar to remove it or change its type. Creating the input is as
easy as just connecting a link or using link-drag-search.
This commit is contained in:
Jacques Lucke
2025-10-04 14:28:51 +02:00
parent 5cae5df96e
commit 80684a18bc

View File

@@ -347,13 +347,11 @@ static void node_geo_exec(GeoNodeExecParams params)
#endif
}
static void node_init(bNodeTree *tree, bNode *node)
static void node_init(bNodeTree * /*tree*/, bNode *node)
{
GeometryNodeFieldToGrid *data = MEM_callocN<GeometryNodeFieldToGrid>(__func__);
data->data_type = SOCK_FLOAT;
node->storage = data;
socket_items::add_item_with_socket_type_and_name<ItemsAccessor>(
*tree, *node, SOCK_FLOAT, "Value");
}
static void node_free_storage(bNode *node)