Cleanup: use explicit 'select_and_set_active' API name

Selection should be separated from active state and handled by higher
level code (operators/editors) instead of happening automatically.
This commit is contained in:
2018-11-08 08:15:22 +11:00
parent bdd44564c9
commit c121bc6219
7 changed files with 20 additions and 10 deletions

View File

@@ -2347,7 +2347,8 @@ static int make_override_static_exec(bContext *C, wmOperator *op)
new_ob->parent = obcollection;
}
if (new_ob == (Object *)obact->id.newid) {
BKE_view_layer_base_select(view_layer, base);
/* TODO: is setting active needed? */
BKE_view_layer_base_select_and_set_active(view_layer, base);
}
else {
/* Disable auto-override tags for non-active objects, will help with performaces... */