diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-07-11 16:43:34 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-07-11 16:43:34 +0400 |
commit | 48c8d99cd9eac0935ff73af21d3c33d1ec59f7ad (patch) | |
tree | 85e5746eebe6c26d0db9e194edc33b0141336abd /source/blender/bmesh/intern/bmesh_construct.h | |
parent | e64937c96d48cfbbec8ef1923acf4ca3130a8c35 (diff) |
add BM_elem_attrs_copy_ex() which can take a flag arg to define which flags should be copied. (mainly to be able to avoid copying selection/hidden state)
Diffstat (limited to 'source/blender/bmesh/intern/bmesh_construct.h')
-rw-r--r-- | source/blender/bmesh/intern/bmesh_construct.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/bmesh/intern/bmesh_construct.h b/source/blender/bmesh/intern/bmesh_construct.h index 24b94a61cee..3dcb1eb1ccb 100644 --- a/source/blender/bmesh/intern/bmesh_construct.h +++ b/source/blender/bmesh/intern/bmesh_construct.h @@ -50,7 +50,9 @@ void BMO_remove_tagged_verts(BMesh *bm, const short oflag); void BMO_remove_tagged_context(BMesh *bm, const short oflag, const int type); -void BM_elem_attrs_copy(BMesh *source_mesh, BMesh *target_mesh, const void *source, void *target); +void BM_elem_attrs_copy_ex(BMesh *bm_src, BMesh *bm_dst, const void *ele_src_v, void *ele_dst_v, + const char hflag_mask); +void BM_elem_attrs_copy(BMesh *bm_src, BMesh *bm_dst, const void *ele_src_v, void *ele_dst_v); void BM_mesh_copy_init_customdata(BMesh *bm_dst, BMesh *bm_src, const struct BMAllocTemplate *allocsize); BMesh *BM_mesh_copy(BMesh *bm_old); |