diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-11-09 09:11:35 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-11-09 09:11:35 +0300 |
commit | a7540f4b3611a0d06f197e6f27148319927188f7 (patch) | |
tree | 330598c659cff3d39814f62a264e76173386e084 /source/blender/modifiers | |
parent | 2772a033c9506f3358686154ee76777048a48426 (diff) | |
parent | 2eb94f30368bef17c6d0b4e2d16cd3e6d9290184 (diff) |
Merge branch 'blender-v3.0-release'
Diffstat (limited to 'source/blender/modifiers')
-rw-r--r-- | source/blender/modifiers/intern/MOD_boolean.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/modifiers/intern/MOD_boolean.cc b/source/blender/modifiers/intern/MOD_boolean.cc index 16c0e98c8d5..f8c181905b5 100644 --- a/source/blender/modifiers/intern/MOD_boolean.cc +++ b/source/blender/modifiers/intern/MOD_boolean.cc @@ -248,6 +248,10 @@ static BMesh *BMD_mesh_bm_create( BMeshCreateParams bmesh_create_params{}; BMesh *bm = BM_mesh_create(&allocsize, &bmesh_create_params); + /* Needed so active layers are set based on `mesh` not `mesh_operand_ob`, + * otherwise the wrong active render layer is used, see T92384. */ + BM_mesh_copy_init_customdata_from_mesh(bm, mesh, &allocsize); + BMeshFromMeshParams bmesh_from_mesh_params{}; bmesh_from_mesh_params.calc_face_normal = true; BM_mesh_bm_from_me(bm, mesh_operand_ob, &bmesh_from_mesh_params); |