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:
authorGermano Cavalcante <germano.costa@ig.com.br>2020-10-10 17:13:01 +0300
committerGermano Cavalcante <germano.costa@ig.com.br>2020-10-12 14:57:43 +0300
commitaafd71a8a160bdf44ab3ccea37e88bb90b87a2ac (patch)
treed6782b5d8d26444b6af66e5fa9508b3d174877ab /source/blender/bmesh/intern/bmesh_construct.h
parentab65fe5a2dcca9cb5de14eaeabe5a441bc41f15a (diff)
Fix T81060: CustomData Correction sometimes breaks UVs and Vertex Colors
`CustomData_bmesh_interp` use the same CustomData decryptor (in this case, `bm->ldata`) in both blocks. So make sure that all CustomData layers match. This commit also removes redundant `BM_elem_attrs_copy_ex` calls. Maniphest Tasks: T81060 Differential Revision: https://developer.blender.org/D9159
Diffstat (limited to 'source/blender/bmesh/intern/bmesh_construct.h')
-rw-r--r--source/blender/bmesh/intern/bmesh_construct.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/bmesh/intern/bmesh_construct.h b/source/blender/bmesh/intern/bmesh_construct.h
index 3523c4aec1a..f5102283ede 100644
--- a/source/blender/bmesh/intern/bmesh_construct.h
+++ b/source/blender/bmesh/intern/bmesh_construct.h
@@ -69,6 +69,10 @@ void BM_elem_select_copy(BMesh *bm_dst, void *ele_dst_v, const void *ele_src_v);
void BM_mesh_copy_init_customdata(BMesh *bm_dst,
BMesh *bm_src,
const struct BMAllocTemplate *allocsize);
+void BM_mesh_copy_init_customdata_all_layers(BMesh *bm_dst,
+ BMesh *bm_src,
+ const char htype,
+ const struct BMAllocTemplate *allocsize);
BMesh *BM_mesh_copy(BMesh *bm_old);
char BM_face_flag_from_mflag(const char mflag);