[Bf-blender-cvs] [b6d2bee28f3] master: Geometry Nodes: Support instances in the remove attribute node
Hans Goudey
noreply at git.blender.org
Tue Oct 26 19:45:55 CEST 2021
Commit: b6d2bee28f3a232f47de19b26051054e7c863269
Author: Hans Goudey
Date: Tue Oct 26 12:45:47 2021 -0500
Branches: master
https://developer.blender.org/rBb6d2bee28f3a232f47de19b26051054e7c863269
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.
===================================================================
M source/blender/nodes/geometry/nodes/node_geo_attribute_remove.cc
===================================================================
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);
}
More information about the Bf-blender-cvs
mailing list