diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2018-11-06 19:29:00 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2018-11-06 19:29:00 +0300 |
commit | f6a54aa234d6d59ceac15f2944c2ddc5f29aac0a (patch) | |
tree | 87351e1e2542eb642ffb044f9508040d8cfbe443 /io_scene_obj/import_obj.py | |
parent | 7461a6811331bee00e4e6f3c642e05ebcae75add (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.py | 2 |
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: |