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:
authorBastien Montagne <montagne29@wanadoo.fr>2018-11-06 19:29:00 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2018-11-06 19:29:00 +0300
commitf6a54aa234d6d59ceac15f2944c2ddc5f29aac0a (patch)
tree87351e1e2542eb642ffb044f9508040d8cfbe443 /io_scene_obj/import_obj.py
parent7461a6811331bee00e4e6f3c642e05ebcae75add (diff)
Updates for change in ViewLayer RNA API.
Diffstat (limited to 'io_scene_obj/import_obj.py')
-rw-r--r--io_scene_obj/import_obj.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/io_scene_obj/import_obj.py b/io_scene_obj/import_obj.py
index 84ea3706..71810bcc 100644
--- a/io_scene_obj/import_obj.py
+++ b/io_scene_obj/import_obj.py
@@ -1179,7 +1179,7 @@ def load(context,
create_nurbs(context_nurbs, verts_loc, new_objects)
view_layer = context.view_layer
- collection = view_layer.collections.active.collection
+ collection = view_layer.active_layer_collection.collection
# Create new obj
for obj in new_objects: