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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user