Fix T69176: Outliner->BlenderFile->Delete not working on some objects.
Object not referenced in any scene would not be deletable with previous code... that was fine in 2.7x since it was not supposed to happen, but now we can just use the nuclear `BKE_id_delete` for objects as well, will take care of properly unlinking everything as needed.
This commit is contained in:
parent
490f966af5
commit
9bda62c136
Notes:
blender-bot
2023-02-14 05:12:59 +01:00
Referenced by issue #69176, Outliner->BlenderFile->Delete not working on some objects
|
@ -680,7 +680,7 @@ static void object_delete_cb(bContext *C,
|
|||
if (ob == CTX_data_edit_object(C)) {
|
||||
ED_object_editmode_exit(C, EM_FREEDATA);
|
||||
}
|
||||
ED_object_base_free_and_unlink(CTX_data_main(C), scene, ob);
|
||||
BKE_id_delete(bmain, ob);
|
||||
/* leave for ED_outliner_id_unref to handle */
|
||||
#if 0
|
||||
te->directdata = NULL;
|
||||
|
|
Loading…
Reference in New Issue