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:
authorHoward Trickey <howard.trickey@gmail.com>2021-02-22 01:57:03 +0300
committerHoward Trickey <howard.trickey@gmail.com>2021-02-22 01:57:03 +0300
commita3f091d7ceda77181422625135225e55afa612c8 (patch)
treee0529be5ae4da66a1d7fbc3e35162b925f519dc5 /source/blender/blenkernel/intern/customdata.c
parent7883eb04ed3a3718a5a3b5e598c0e12eb9708d9f (diff)
Change Exact Boolean modifier to skip round trip through BMesh.
The Exact modifier code had been written to avoid using BMesh but in the initial release the modifier still converted all Meshes to BMeshes, and then after running the boolean code on the BMeshes, converted the result back to a Mesh. This change skips that. Most of the work here is in getting the Custom Data layers right. The approach taken is to merge default layers from all operand meshes into the final result, and then use the original verts, edges, polys, and loops to copy or interpolate the appropriate custom data layers from all operands into the result.
Diffstat (limited to 'source/blender/blenkernel/intern/customdata.c')
-rw-r--r--source/blender/blenkernel/intern/customdata.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/blenkernel/intern/customdata.c b/source/blender/blenkernel/intern/customdata.c
index 9188d8c1afd..ab57676fde3 100644
--- a/source/blender/blenkernel/intern/customdata.c
+++ b/source/blender/blenkernel/intern/customdata.c
@@ -2881,13 +2881,13 @@ void CustomData_copy_elements(int type, void *src_data_ofs, void *dst_data_ofs,
}
}
-static void CustomData_copy_data_layer(const CustomData *source,
- CustomData *dest,
- int src_i,
- int dst_i,
- int src_index,
- int dst_index,
- int count)
+void CustomData_copy_data_layer(const CustomData *source,
+ CustomData *dest,
+ int src_i,
+ int dst_i,
+ int src_index,
+ int dst_index,
+ int count)
{
const LayerTypeInfo *typeInfo;