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/collada/collada_utils.cpp
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/collada/collada_utils.cpp')
-rw-r--r--source/blender/collada/collada_utils.cpp3
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;
}