Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2019-01-28 23:57:56 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2019-01-28 23:57:56 +0300
commit491a98ca44297555c97e4dcc5ed5bf7b2dc0661d (patch)
treeb78440453fe743c4a42ce029824035e7a7b5ee92 /source
parent5537117366db2a1af118a06ac89ba223de8c690e (diff)
Outliner: Enable new faster 'Delete Hierarchy' code by default.
Some more tests showed no issue, so now feeling reasonably confident. Old, 'safer' one remains available through setting debug value to 666, for a few more weeks.
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/space_outliner/outliner_tools.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/source/blender/editors/space_outliner/outliner_tools.c b/source/blender/editors/space_outliner/outliner_tools.c
index 01836e1a666..47ff4d5fa3b 100644
--- a/source/blender/editors/space_outliner/outliner_tools.c
+++ b/source/blender/editors/space_outliner/outliner_tools.c
@@ -1066,9 +1066,12 @@ static int outliner_object_operation_exec(bContext *C, wmOperator *op)
WM_event_add_notifier(C, NC_SCENE | ND_OB_ACTIVE, scene);
}
else if (event == OL_OP_DELETE_HIERARCHY) {
- /* For now, usage of batch-deletion of objects it hidden behind that debug value,
- * until we get some more testing of it - *should* be safe, but... */
+ /* 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(
@@ -1076,10 +1079,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);