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:
authorBastien Montagne <montagne29@wanadoo.fr>2019-03-08 13:45:00 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2019-03-08 19:53:31 +0300
commitcdba2bc0fce86e814aaa5a969a018b5c1c9f8b3b (patch)
tree9c14874fd4e5b208bd80a269cf9a5c413cb1ff08 /source/blender/blenkernel/BKE_mesh_remap.h
parent2a40c6ee2bba46b4e4475c45c2d2332cb417a541 (diff)
BKE mesh remap: add utils to add needed cddata mask for source mesh.
In some cases (currently, only when using avanced mapping of loops), code needs access to some cddata of the source mesh (CD_NORMAL...). We need a way to inform calling code about that (actual issue requiring this change is fixed in next commit).
Diffstat (limited to 'source/blender/blenkernel/BKE_mesh_remap.h')
-rw-r--r--source/blender/blenkernel/BKE_mesh_remap.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_mesh_remap.h b/source/blender/blenkernel/BKE_mesh_remap.h
index 170ee9f0ccb..754e5b2cd05 100644
--- a/source/blender/blenkernel/BKE_mesh_remap.h
+++ b/source/blender/blenkernel/BKE_mesh_remap.h
@@ -22,6 +22,7 @@
*/
struct CustomData;
+struct CustomData_MeshMasks;
struct MVert;
struct MemArena;
struct Mesh;
@@ -136,6 +137,10 @@ enum {
MREMAP_MODE_TOPOLOGY = MREMAP_MODE_VERT | MREMAP_MODE_EDGE | MREMAP_MODE_LOOP | MREMAP_MODE_POLY,
};
+void BKE_mesh_remap_calc_source_cddata_masks_from_map_modes(
+ const int vert_mode, const int edge_mode, const int loop_mode, const int poly_mode,
+ struct CustomData_MeshMasks *cddata_mask);
+
float BKE_mesh_remap_calc_difference_from_mesh(
const struct SpaceTransform *space_transform,
const struct MVert *verts_dst, const int numverts_dst, struct Mesh *me_src);