diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-11-08 00:15:22 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-11-08 00:31:11 +0300 |
commit | c121bc62193ab22b37cf3d8cf7bd1d21205f1f3c (patch) | |
tree | 3e1a5777dd160c41dd3b85b25f11ca45f6b1f11e /source/blender/alembic | |
parent | bdd44564c9c1e22396fc8e30b6b6d831add02b56 (diff) |
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.
Diffstat (limited to 'source/blender/alembic')
-rw-r--r-- | source/blender/alembic/intern/alembic_capi.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/alembic/intern/alembic_capi.cc b/source/blender/alembic/intern/alembic_capi.cc index c3e07fcdb2d..e1d4eb3490b 100644 --- a/source/blender/alembic/intern/alembic_capi.cc +++ b/source/blender/alembic/intern/alembic_capi.cc @@ -815,7 +815,8 @@ static void import_endjob(void *user_data) BKE_collection_object_add(data->bmain, lc->collection, ob); base = BKE_view_layer_base_find(view_layer, ob); - BKE_view_layer_base_select(view_layer, base); + /* TODO: is setting active needed? */ + BKE_view_layer_base_select_and_set_active(view_layer, base); DEG_id_tag_update(&lc->collection->id, DEG_TAG_COPY_ON_WRITE); DEG_id_tag_update_ex(data->bmain, &ob->id, |