diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2018-11-27 12:24:48 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2018-11-27 13:07:44 +0300 |
commit | 00d438639dab0370987c330296a3cbc0f4e388de (patch) | |
tree | f9b8a4accf2101a64827655d59fc65563c64823d /source/blender/editors/object/object_select.c | |
parent | 884638494d5cc0352195b44c08bad48c2640bbad (diff) |
Fix T57929: missing UI updates when changing active object
was caused by NC_SCENE notifier being skipped with a non-scene reference
showed e.g. in timeline not updating keyframes/cachelines
Maniphest Tasks: T57929
Differential Revision: https://developer.blender.org/D4000
Diffstat (limited to 'source/blender/editors/object/object_select.c')
-rw-r--r-- | source/blender/editors/object/object_select.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/source/blender/editors/object/object_select.c b/source/blender/editors/object/object_select.c index c4538a8951f..7c03e93f4b2 100644 --- a/source/blender/editors/object/object_select.c +++ b/source/blender/editors/object/object_select.c @@ -126,15 +126,11 @@ void ED_object_base_select(Base *base, eObjectSelect_Mode mode) */ void ED_object_base_activate(bContext *C, Base *base) { + Scene *scene = CTX_data_scene(C); ViewLayer *view_layer = CTX_data_view_layer(C); view_layer->basact = base; - if (base) { - WM_event_add_notifier(C, NC_SCENE | ND_OB_ACTIVE, view_layer); - } - else { - WM_event_add_notifier(C, NC_SCENE | ND_OB_ACTIVE, NULL); - } + WM_event_add_notifier(C, NC_SCENE | ND_OB_ACTIVE, scene); DEG_id_tag_update(&CTX_data_scene(C)->id, DEG_TAG_SELECT_UPDATE); } |