Rename any instance of scene layer or render layer in code with view layer
[blender.git] / source / blender / editors / space_view3d / view3d_manipulator_ruler.c
index 01cf67259a492326decaff8c3d68a89cd97ad13f..0495d1d696c1b647f4ce127147a1ae985b81a931 100644 (file)
@@ -272,7 +272,7 @@ static void ruler_state_set(bContext *C, RulerInfo *ruler_info, int state)
        }
        else if (state == RULER_STATE_DRAG) {
                ruler_info->snap_context = ED_transform_snap_object_context_create_view3d(
-                       CTX_data_main(C), CTX_data_scene(C), CTX_data_scene_layer(C), CTX_data_engine(C), 0,
+                       CTX_data_main(C), CTX_data_scene(C), CTX_data_view_layer(C), CTX_data_engine(C), 0,
                        ruler_info->ar, CTX_wm_view3d(C));
        }
        else {