Page MenuHome

Fix T57929: missing UI updates when changing active object
ClosedPublic

Authored by Philipp Oeser (lichtwerk) on Tue, Nov 27, 10:26 AM.

Diff Detail

Repository
rB Blender

Event Timeline

Looks good. There's a further minor fix you can do.

source/blender/editors/object/object_select.c
130–134

Simplify this to:

Scene *scene = CTX_data_scene(C);
ViewLayer *view_layer = CTX_data_view_layer(C);
view_layer->basact = base;
WM_event_add_notifier(C, NC_SCENE | ND_OB_ACTIVE, scene);
DEG_id_tag_update(&scene->id, DEG_TAG_SELECT_UPDATE);

NULL means all scenes are affected, which is not the case here.

This revision is now accepted and ready to land.Tue, Nov 27, 10:41 AM

review comments by brecht

This revision was automatically updated to reflect the committed changes.