Rename any instance of scene layer or render layer in code with view layer
[blender.git] / source / blender / editors / transform / transform_orientations.c
index 86f99c4fed25ade819e6dd25a2191da7c8012191..09f3613358e5288601f6045ed497bf93dafb62da 100644 (file)
@@ -578,7 +578,7 @@ static unsigned int bm_mesh_faces_select_get_n(BMesh *bm, BMVert **elems, const
 
 int getTransformOrientation_ex(const bContext *C, float normal[3], float plane[3], const short around)
 {
-       SceneLayer *sl = CTX_data_scene_layer(C);
+       ViewLayer *sl = CTX_data_view_layer(C);
        Object *obedit = CTX_data_edit_object(C);
        Base *base;
        Object *ob = OBACT(sl);