Fix #106247: Remove incorrect selection check when in multi-mesh #106350

Open
Jake wants to merge 1 commits from Jake-Faulkner/blender:Fix-106247 into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
1 changed files with 20 additions and 29 deletions

View File

@ -1629,9 +1629,6 @@ static void object_get_datamask(const Depsgraph *depsgraph,
CustomData_MeshMasks *r_mask,
bool *r_need_mapping)
{
Scene *scene = DEG_get_evaluated_scene(depsgraph);
ViewLayer *view_layer = DEG_get_evaluated_view_layer(depsgraph);
DEG_get_customdata_mask_for_object(depsgraph, ob, r_mask);
if (r_need_mapping) {
@ -1644,13 +1641,8 @@ static void object_get_datamask(const Depsgraph *depsgraph,
return;
}
BKE_view_layer_synced_ensure(scene, view_layer);
Object *actob = BKE_view_layer_active_object_get(view_layer);
if (actob) {
actob = DEG_get_original_object(actob);
}
if (DEG_get_original_object(ob) == actob) {
bool editing = BKE_paint_select_face_test(actob);
Object *origob = DEG_get_original_object(ob);
bool editing = BKE_paint_select_face_test(origob);
/* weight paint and face select need original indices because of selection buffer drawing */
if (r_need_mapping) {
@ -1676,7 +1668,6 @@ static void object_get_datamask(const Depsgraph *depsgraph,
r_mask->vmask |= CD_MASK_MVERT_SKIN;
}
}
}
void makeDerivedMesh(struct Depsgraph *depsgraph,
const Scene *scene,