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-04-07 23:49:02 +0300
committerHans Goudey <h.goudey@me.com>2021-04-07 23:49:02 +0300
commit79ba4fde1591ce20c23608276975c691cd3c9302 (patch)
tree059c00cbbb30d787be46c0580baf1a6a46d9990c /source/blender/nodes/geometry/nodes/node_geo_point_distribute.cc
parent1a8db9ec04d53d6b9d40d463001b84684e5a8e76 (diff)
Cleanup: Rename function, switch order of arguments
The function name was not very specific, this makes it clearer that it works on instances rather than only real geometry. Also use `r_` prefix for the return argument.
Diffstat (limited to 'source/blender/nodes/geometry/nodes/node_geo_point_distribute.cc')
-rw-r--r--source/blender/nodes/geometry/nodes/node_geo_point_distribute.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/nodes/geometry/nodes/node_geo_point_distribute.cc b/source/blender/nodes/geometry/nodes/node_geo_point_distribute.cc
index 8f0708c9263..2d7c174d5a4 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_point_distribute.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_point_distribute.cc
@@ -716,8 +716,8 @@ static void geo_node_point_distribute_exec(GeoNodeExecParams params)
geometry_set_out.get_component_for_write<PointCloudComponent>();
Map<std::string, AttributeKind> attributes;
- bke::gather_attribute_info(
- attributes, {GEO_COMPONENT_TYPE_MESH}, set_groups, {"position", "normal", "id"});
+ bke::geometry_set_gather_instances_attribute_info(
+ set_groups, {GEO_COMPONENT_TYPE_MESH}, {"position", "normal", "id"}, attributes);
add_remaining_point_attributes(set_groups,
instance_start_offsets,
attributes,