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:
@@ -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... */
|
||||
|
||||
Reference in New Issue
Block a user