Fix #106246: Crash on deleting the multi-level hierarchy #106374

Closed
Pratik Borhade wants to merge 1 commits from PratikPB2123/blender:T106246-del-hierarchy-crash into main

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

View File

@ -2191,8 +2191,6 @@ static Base *outliner_batch_delete_hierarchy(
}
}
base_next = base->next;
if (object->id.tag & LIB_TAG_INDIRECT) {
BKE_reportf(reports,
RPT_WARNING,
@ -2211,6 +2209,8 @@ static Base *outliner_batch_delete_hierarchy(
return base_next;
}
base_next = base->next;
DEG_id_tag_update_ex(bmain, &object->id, ID_RECALC_BASE_FLAGS);
BKE_scene_collections_object_remove(bmain, scene, object, false);