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
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2019-03-01 23:19:01 +0300
committerDalai Felinto <dfelinto@gmail.com>2019-03-01 23:21:00 +0300
commitd1baed5e3d03864b7968867fb93f9daa3d70428f (patch)
treec0fc5d737c869f92dc98644511cc0c15f864bd73 /source/blender/editors/space_outliner
parent42faf52d8bcae3b33164069c4c692152cf42b9b3 (diff)
Fix T62098: Outliner: Delete hierarchy crash
Revert "Outliner: Enable new faster 'Delete Hierarchy' code by default." This reverts commit 491a98ca44297555c97e4dcc5ed5bf7b2dc0661d. It fails in the most basic of tests (see report). No point in leaving this commit around until it passes the easy to test cases.
Diffstat (limited to 'source/blender/editors/space_outliner')
-rw-r--r--source/blender/editors/space_outliner/outliner_tools.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/source/blender/editors/space_outliner/outliner_tools.c b/source/blender/editors/space_outliner/outliner_tools.c
index 4b67c835e7f..36aacfc164d 100644
--- a/source/blender/editors/space_outliner/outliner_tools.c
+++ b/source/blender/editors/space_outliner/outliner_tools.c
@@ -1067,12 +1067,9 @@ 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);
- /* Keeping old 'safe and slow' code for a bit (new one enabled on 28/01/2019). */
+ /* For now, usage of batch-deletion of objects it hidden behind that debug value,
+ * until we get some more testing of it - see T62098. */
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(
@@ -1080,6 +1077,10 @@ 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);