Commit: c06c5d617a8b0e72acdeb60674172d748093bf24
Author: Dalai Felinto
Date:   Wed Dec 16 17:48:05 2020 +0100
Branches: master
https://developer.blender.org/rBc06c5d617a8b0e72acdeb60674172d748093bf24

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.

===================================================================

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..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. */

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to