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/collada | |
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/collada')
-rw-r--r-- | source/blender/collada/collada_utils.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/collada/collada_utils.cpp b/source/blender/collada/collada_utils.cpp index 5f01a092699..5019916b06f 100644 --- a/source/blender/collada/collada_utils.cpp +++ b/source/blender/collada/collada_utils.cpp @@ -154,7 +154,8 @@ Object *bc_add_object(Main *bmain, Scene *scene, ViewLayer *view_layer, int type BKE_collection_object_add(bmain, layer_collection->collection, ob); Base *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); return ob; } |