Page MenuHome

Fix T57929: missing UI updates when changing active object

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

Diff Detail

rB Blender

Event Timeline

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


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.Nov 27 2018, 10:41 AM

review comments by brecht

This revision was automatically updated to reflect the committed changes.