diff options
author | Hans Goudey <h.goudey@me.com> | 2021-10-26 20:45:47 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-10-26 20:45:47 +0300 |
commit | b6d2bee28f3a232f47de19b26051054e7c863269 (patch) | |
tree | c6bf8d75e792d9446645ab523d4a44b8d9679789 | |
parent | 6871f8482b03f13b94171dcbb1211b00802bb9bf (diff) |
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.
-rw-r--r-- | source/blender/nodes/geometry/nodes/node_geo_attribute_remove.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/nodes/geometry/nodes/node_geo_attribute_remove.cc b/source/blender/nodes/geometry/nodes/node_geo_attribute_remove.cc index f93ef6f1db3..65a137a028d 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_attribute_remove.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_attribute_remove.cc @@ -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); } |