diff options
Diffstat (limited to 'io_import_scene_lwo.py')
-rw-r--r-- | io_import_scene_lwo.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_import_scene_lwo.py b/io_import_scene_lwo.py index 14109366..ffe18c9f 100644 --- a/io_import_scene_lwo.py +++ b/io_import_scene_lwo.py @@ -1047,7 +1047,7 @@ def build_objects(object_layers, object_surfs, object_tags, object_name, add_sub ngons[fi]= fpol # Deal with them later ob= bpy.data.objects.new(layer_data.name, me) - bpy.context.scene.objects.link(ob) + bpy.context.collection.objects.link(ob) ob_dict[layer_data.index]= [ob, layer_data.parent_index] # Move the object so the pivot is in the right place. |