[Bf-blender-cvs] [589d0894722] master: Fix T62025: Outliner and viewport missing update after deleting object

Dalai Felinto noreply at git.blender.org
Fri Mar 1 20:28:28 CET 2019


Commit: 589d08947220e6ffe173fd2235dfb4f75dabdcdb
Author: Dalai Felinto
Date:   Fri Mar 1 16:18:05 2019 -0300
Branches: master
https://developer.blender.org/rB589d08947220e6ffe173fd2235dfb4f75dabdcdb

Fix T62025: Outliner and viewport missing update after deleting object

Bug introduced on 012483b6e4a1453c3e990127db001617997a9d64.

Since we notify similar things when changing active and selected
objects, I believe we didn't notice this was missing a ND_OB_SELECT
notification before the small refactor to use the messenging system
exposed that bug.

===================================================================

M	source/blender/editors/space_outliner/outliner_tools.c

===================================================================

diff --git a/source/blender/editors/space_outliner/outliner_tools.c b/source/blender/editors/space_outliner/outliner_tools.c
index 8aa8eb04954..4b67c835e7f 100644
--- a/source/blender/editors/space_outliner/outliner_tools.c
+++ b/source/blender/editors/space_outliner/outliner_tools.c
@@ -1057,6 +1057,7 @@ static int outliner_object_operation_exec(bContext *C, wmOperator *op)
 		DEG_relations_tag_update(bmain);
 		str = "Delete Objects";
 		DEG_id_tag_update(&scene->id, ID_RECALC_SELECT);
+		WM_event_add_notifier(C, NC_SCENE | ND_OB_SELECT, scene);
 		if (basact_prev != BASACT(view_layer)) {
 			WM_event_add_notifier(C, NC_SCENE | ND_OB_ACTIVE, scene);
 			WM_msg_publish_rna_prop(mbus, &scene->id, view_layer, LayerObjects, active);
@@ -1086,7 +1087,7 @@ static int outliner_object_operation_exec(bContext *C, wmOperator *op)
 		DEG_relations_tag_update(bmain);
 		str = "Delete Object Hierarchy";
 		DEG_id_tag_update(&scene->id, ID_RECALC_SELECT);
-		WM_event_add_notifier(C, NC_SCENE | ND_OB_ACTIVE, scene);
+		WM_event_add_notifier(C, NC_SCENE | ND_OB_SELECT, scene);
 		if (basact_prev != BASACT(view_layer)) {
 			WM_event_add_notifier(C, NC_SCENE | ND_OB_ACTIVE, scene);
 			WM_msg_publish_rna_prop(mbus, &scene->id, view_layer, LayerObjects, active);



More information about the Bf-blender-cvs mailing list