Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2021-10-26 20:45:47 +0300
committerHans Goudey <h.goudey@me.com>2021-10-26 20:45:47 +0300
commitb6d2bee28f3a232f47de19b26051054e7c863269 (patch)
treec6bf8d75e792d9446645ab523d4a44b8d9679789
parent6871f8482b03f13b94171dcbb1211b00802bb9bf (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.cc4
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);
}