Revert "Fix T62098: Outliner: Delete hierarchy crash"
This reverts commit d1baed5e3d
.
Next time please let original author of the buggy code to take care of
fixing the issue!
This commit is contained in:
parent
ccecc409e4
commit
84820e7f58
Notes:
blender-bot
2023-02-14 11:28:43 +01:00
Referenced by issue #62388, object visibilty using obj.hide_viewport not recognized by context.visible_objects and obj.visible_get() Referenced by issue #62135, duplicate-move on parented objects, doesn't move in world space Referenced by issue #62128, inconsistent material duplication Referenced by issue #62098, Outliner: Delete hierarchy crash Referenced by issue #62074, 2.8: Python API: crash due to missing window context in Application timer
|
@ -1067,9 +1067,12 @@ static int outliner_object_operation_exec(bContext *C, wmOperator *op)
|
|||
ViewLayer *view_layer = CTX_data_view_layer(C);
|
||||
const Base *basact_prev = BASACT(view_layer);
|
||||
|
||||
/* For now, usage of batch-deletion of objects it hidden behind that debug value,
|
||||
* until we get some more testing of it - see T62098. */
|
||||
/* Keeping old 'safe and slow' code for a bit (new one enabled on 28/01/2019). */
|
||||
if (G.debug_value == 666) {
|
||||
outliner_do_object_operation_ex(
|
||||
C, op->reports, scene, soops, &soops->tree, object_delete_hierarchy_cb, NULL, false);
|
||||
}
|
||||
else {
|
||||
BKE_main_id_tag_all(bmain, LIB_TAG_DOIT, false);
|
||||
|
||||
outliner_do_object_operation_ex(
|
||||
|
@ -1077,10 +1080,6 @@ static int outliner_object_operation_exec(bContext *C, wmOperator *op)
|
|||
|
||||
BKE_id_multi_tagged_delete(bmain);
|
||||
}
|
||||
else {
|
||||
outliner_do_object_operation_ex(
|
||||
C, op->reports, scene, soops, &soops->tree, object_delete_hierarchy_cb, NULL, false);
|
||||
}
|
||||
|
||||
/* XXX: See OL_OP_DELETE comment above. */
|
||||
outliner_cleanup_tree(soops);
|
||||
|
|
Loading…
Reference in New Issue