diff options
author | Hans Goudey <h.goudey@me.com> | 2021-03-25 21:54:27 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-03-25 21:54:27 +0300 |
commit | 64ca2865404ed95b1be0eb875f153673cdf5a212 (patch) | |
tree | 912573271ba375f275346133cc7064107e3eef7e /source/blender/nodes | |
parent | 926f7612fd75078f5fb802d165f9c25af0bdb0df (diff) |
Cleanup: Pass instance group result vector as an argument
This will allow retrieving the instance groups from multiple geometry
sets and avoiding needing vectors of vectors to store the results.
This is useful when retrieving instances from a multi-input socket
of geometries.
Diffstat (limited to 'source/blender/nodes')
-rw-r--r-- | source/blender/nodes/geometry/nodes/node_geo_point_distribute.cc | 3 |
1 files changed, 2 insertions, 1 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 2e3460ee5fe..1e1f5e9d085 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_point_distribute.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_point_distribute.cc @@ -636,7 +636,8 @@ static void geo_node_point_distribute_exec(GeoNodeExecParams params) return; } - Vector<GeometryInstanceGroup> set_groups = bke::geometry_set_gather_instances(geometry_set); + Vector<GeometryInstanceGroup> set_groups; + geometry_set_gather_instances(geometry_set, set_groups); if (set_groups.is_empty()) { params.set_output("Geometry", GeometrySet()); return; |