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:
authorJacques Lucke <jacques@blender.org>2021-03-09 11:30:59 +0300
committerJacques Lucke <jacques@blender.org>2021-03-09 11:31:14 +0300
commitdc3e9048aef7205376295e4887c589bb4bc319d0 (patch)
treef210c38b44e9ede36a2f5399e7b4c5a3fa0e85c7 /source/blender
parent745576b16e32343fedd8040f284b9001d8b72c77 (diff)
Cleanup: fix warnings
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/nodes/geometry/nodes/node_geo_point_distribute.cc8
1 files changed, 4 insertions, 4 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 96409837491..742383f5b46 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_point_distribute.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_point_distribute.cc
@@ -149,7 +149,7 @@ BLI_NOINLINE static KDTree_3d *build_kdtree(Span<Vector<float3>> positions_all,
KDTree_3d *kdtree = BLI_kdtree_3d_new(initial_points_len);
int i_point = 0;
- for (const Vector<float3> positions : positions_all) {
+ for (const Vector<float3> &positions : positions_all) {
for (const float3 position : positions) {
BLI_kdtree_3d_insert(kdtree, i_point, position);
i_point++;
@@ -611,13 +611,13 @@ static void geo_node_point_distribute_exec(GeoNodeExecParams params)
"Density Attribute");
if (density <= 0.0f) {
- params.set_output("Geometry", std::move(GeometrySet()));
+ params.set_output("Geometry", GeometrySet());
return;
}
Vector<GeometryInstanceGroup> set_groups = bke::geometry_set_gather_instances(geometry_set);
if (set_groups.is_empty()) {
- params.set_output("Geometry", std::move(GeometrySet()));
+ params.set_output("Geometry", GeometrySet());
return;
}
@@ -631,7 +631,7 @@ static void geo_node_point_distribute_exec(GeoNodeExecParams params)
if (set_groups.is_empty()) {
params.error_message_add(NodeWarningType::Error, TIP_("Input geometry must contain a mesh"));
- params.set_output("Geometry", std::move(GeometrySet()));
+ params.set_output("Geometry", GeometrySet());
return;
}