From BlenderWiki

Jump to: navigation, search

Blender 2.8 API Changes

+# no longer exists
-bpy_extras.object_utils.object_data_add(context, obdata, operator=None, use_active_layer=True, name=None)
+bpy_extras.object_utils.object_data_add(context, obdata, operator=None, name=None) = True = False
+not bpy.context.object.visible_get()
-bpy.context.object.hide = False
+# no longer exists, use collection.hide instead
rna_Scene_ray_cast requires a scene_layer argument.



If you copy context and override scene_layer, but not scene_collection what's going to be the override scene_collection?

It depends!

Is the original context.scene_collection linked (directly, or indirectly via nesting) into the overridden scene_layer? Then this is still the one you will get.

Is it not? In this case you get the active collection of the overridden scene_layer.