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:
authorDalai Felinto <dalai@blender.org>2020-12-16 19:48:05 +0300
committerDalai Felinto <dalai@blender.org>2020-12-16 20:02:55 +0300
commitc06c5d617a8b0e72acdeb60674172d748093bf24 (patch)
treeed594f50bedcf98e0b890cd630620afa4256cb92
parentebd8a703ccb6b8884b26e78771a9fec8ba919f9a (diff)
Cleanup: Replace mempcpy with memcpy
There is no need of using mempcpy here, memcpy is enough. Note: This also fix building in Windows which was broken since a7628ec22a.
-rw-r--r--source/blender/nodes/geometry/nodes/node_geo_point_distribute_poisson_disk.cc7
1 files changed, 4 insertions, 3 deletions
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..47764efa15d 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
@@ -28,6 +28,7 @@
#include "node_geometry_util.hh"
#include <iostream>
+#include <string.h>
namespace blender::nodes {
@@ -245,9 +246,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. */