forked from bartvdbraak/blender
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.
This commit is contained in:
parent
e546d7666b
commit
b9a3da9080
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user