Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-11-08 00:15:22 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-11-08 00:31:11 +0300
commitc121bc62193ab22b37cf3d8cf7bd1d21205f1f3c (patch)
tree3e1a5777dd160c41dd3b85b25f11ca45f6b1f11e /source/blender/alembic
parentbdd44564c9c1e22396fc8e30b6b6d831add02b56 (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.cc3
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,