[Bf-blender-cvs] [f19f511a193] temp-memcpy-distribute-poisson: Cleanup: Replace mempcpy with memcpy
Dalai Felinto
noreply at git.blender.org
Wed Dec 16 17:51:25 CET 2020
Commit: f19f511a1939ddb7f305b2db6597bdd5fa91da76
Author: Dalai Felinto
Date: Wed Dec 16 17:48:05 2020 +0100
Branches: temp-memcpy-distribute-poisson
https://developer.blender.org/rBf19f511a1939ddb7f305b2db6597bdd5fa91da76
Cleanup: Replace mempcpy with memcpy
There is no need of using mempcpy here, memcpy is enough.
Note: This may fix building in Windows as well, which was broken since
a7628ec22a.
===================================================================
M source/blender/nodes/geometry/nodes/node_geo_point_distribute_poisson_disk.cc
===================================================================
diff --git a/source/blender/nodes/geometry/nodes/node_geo_point_distribute_poisson_disk.cc b/source/blender/nodes/geometry/nodes/node_geo_point_distribute_poisson_disk.cc
index 5dfdfce0e68..055f178dcc0 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_point_distribute_poisson_disk.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_point_distribute_poisson_disk.cc
@@ -245,9 +245,9 @@ static void progressive_sampling_reorder(Vector<float3> *output_points,
source_points, source_size, dest_points, dest_size, maximum_density, boundbox, true);
if (dest_points != output_points->data()) {
- mempcpy((*output_points)[dest_size],
- dest_points[dest_size],
- (source_size - dest_size) * sizeof(float3));
+ memcpy((*output_points)[dest_size],
+ dest_points[dest_size],
+ (source_size - dest_size) * sizeof(float3));
}
/* Swap the arrays around. */
More information about the Bf-blender-cvs
mailing list