diff options
author | Julian Eisel <julian@blender.org> | 2020-10-12 19:04:52 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2020-10-12 19:21:12 +0300 |
commit | c1cee363cd39aaf25cbf4e099a07d1c4df6d37d7 (patch) | |
tree | f1d26f13c671d36202e19f7c325e922883616335 /source/blender/editors/object | |
parent | 6f0b082378133afd944cc6af2e992c5f9fb12cd3 (diff) |
Fix T81555: Outliner object state filter not updating correctly
When changing the selected, active or visible object(s), the Outliner
has to be rebuilt while using the corresponding object state filters.
The object hiding operators also have to send the proper notifiers (they
changed visibility without notifying about that).
Diffstat (limited to 'source/blender/editors/object')
-rw-r--r-- | source/blender/editors/object/object_edit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/object/object_edit.c b/source/blender/editors/object/object_edit.c index 0170e391708..3e7f028bd95 100644 --- a/source/blender/editors/object/object_edit.c +++ b/source/blender/editors/object/object_edit.c @@ -257,6 +257,7 @@ static int object_hide_view_clear_exec(bContext *C, wmOperator *op) BKE_layer_collection_sync(scene, view_layer); DEG_id_tag_update(&scene->id, ID_RECALC_BASE_FLAGS); WM_event_add_notifier(C, NC_SCENE | ND_OB_SELECT, scene); + WM_event_add_notifier(C, NC_SCENE | ND_OB_VISIBLE, scene); return OPERATOR_FINISHED; } @@ -314,6 +315,7 @@ static int object_hide_view_set_exec(bContext *C, wmOperator *op) BKE_layer_collection_sync(scene, view_layer); DEG_id_tag_update(&scene->id, ID_RECALC_BASE_FLAGS); WM_event_add_notifier(C, NC_SCENE | ND_OB_SELECT, scene); + WM_event_add_notifier(C, NC_SCENE | ND_OB_VISIBLE, scene); return OPERATOR_FINISHED; } |