Geometry Nodes: Support instances in the remove attribute node

This node is still hidden, but allowing removing the `id` attribute is
useful for testing, and possibly optimization in the future.
This commit is contained in:
Hans Goudey 2021-10-26 12:45:47 -05:00
parent 6871f8482b
commit b6d2bee28f
1 changed files with 4 additions and 0 deletions

View File

@ -59,6 +59,10 @@ static void geo_node_attribute_remove_exec(GeoNodeExecParams params)
remove_attribute(
geometry_set.get_component_for_write<CurveComponent>(), params, attribute_names);
}
if (geometry_set.has<InstancesComponent>()) {
remove_attribute(
geometry_set.get_component_for_write<InstancesComponent>(), params, attribute_names);
}
params.set_output("Geometry", geometry_set);
}