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

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'blenderkit/utils.py')
-rw-r--r--blenderkit/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/blenderkit/utils.py b/blenderkit/utils.py
index a6bb407d..20dcaec8 100644
--- a/blenderkit/utils.py
+++ b/blenderkit/utils.py
@@ -38,8 +38,8 @@ def activate(ob):
def selection_get():
- aob = bpy.context.active_object
- selobs = bpy.context.selected_objects
+ aob = bpy.context.view_layer.objects.active
+ selobs = bpy.context.view_layer.objects.selected[:]
return (aob, selobs)