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:
authorSergey Sharybin <sergey.vfx@gmail.com>2010-09-17 10:52:48 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2010-09-17 10:52:48 +0400
commitb9a3da908036a16c0f140a894d96d60e1eb5edaf (patch)
tree207d0e0a1816e653c3e92ed59edf0e27d24ea7f2
parente546d7666b753480995dc54c0cf68a3011dd28f0 (diff)
Fix #23869: outliner not updated correctly/instantly
Added ND_OB_SELECT notifier to separate operator. Selected objects aren't actually changing, but there is no existing ND which could be used for outliner update.
-rw-r--r--source/blender/editors/mesh/editmesh.c5
-rw-r--r--source/blender/editors/space_outliner/space_outliner.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/editors/mesh/editmesh.c b/source/blender/editors/mesh/editmesh.c
index e6ba228c260..ff2fad3f551 100644
--- a/source/blender/editors/mesh/editmesh.c
+++ b/source/blender/editors/mesh/editmesh.c
@@ -1526,6 +1526,11 @@ static int mesh_separate_exec(bContext *C, wmOperator *op)
if(retval) {
WM_event_add_notifier(C, NC_GEOM|ND_DATA, base->object->data);
+
+ // XXX: new object was created, but selection wasn't actually changed
+ // need this for outliner update without adding new ND. nazgul.
+ WM_event_add_notifier(C, NC_SCENE|ND_OB_SELECT, scene);
+
return OPERATOR_FINISHED;
}
return OPERATOR_CANCELLED;
diff --git a/source/blender/editors/space_outliner/space_outliner.c b/source/blender/editors/space_outliner/space_outliner.c
index d3db64d6d03..1a46c32713e 100644
--- a/source/blender/editors/space_outliner/space_outliner.c
+++ b/source/blender/editors/space_outliner/space_outliner.c
@@ -120,6 +120,7 @@ static void outliner_main_area_listener(ARegion *ar, wmNotifier *wmn)
ED_region_tag_redraw(ar);
break;
}
+ break;
case NC_GROUP:
/* all actions now, todo: check outliner view mode? */
ED_region_tag_redraw(ar);