Rename any instance of scene layer or render layer in code with view layer
[blender.git] / source / blender / blenkernel / intern / tracking.c
index 6ebd8e6ae36776fbe8dbb9e4dea509e3726a1a4d..07e071df04acb632a2c9d11db505d1e322828a45 100644 (file)
@@ -401,7 +401,7 @@ void BKE_tracking_get_camera_object_matrix(Scene *scene, Object *ob, float mat[4
                if (scene->camera)
                        ob = scene->camera;
                else
-                       ob = BKE_scene_layer_camera_find(BKE_scene_layer_from_scene_get(scene));
+                       ob = BKE_view_layer_camera_find(BKE_view_layer_from_scene_get(scene));
        }
 
        if (ob)