Rename any instance of scene layer or render layer in code with view layer
[blender.git] / source / blender / editors / transform / transform_snap.c
index 3a71800e9cd8accd169ca2f40fdaa42d3f97eaed..52c3f135473b22fac4fcacb69cd6ef338e5dc36f 100644 (file)
@@ -503,7 +503,7 @@ static void initSnappingMode(TransInfo *t)
 {
        ToolSettings *ts = t->settings;
        Object *obedit = t->obedit;
-       SceneLayer *sl = t->scene_layer;
+       ViewLayer *sl = t->view_layer;
        Base *base_act = sl->basact;
 
        if (t->spacetype == SPACE_NODE) {
@@ -585,7 +585,7 @@ static void initSnappingMode(TransInfo *t)
        if (t->spacetype == SPACE_VIEW3D) {
                if (t->tsnap.object_context == NULL) {
                        t->tsnap.object_context = ED_transform_snap_object_context_create_view3d(
-                               G.main, t->scene, t->scene_layer, t->engine, 0,
+                               G.main, t->scene, t->view_layer, t->engine, 0,
                                t->ar, t->view);
 
                        ED_transform_snap_object_context_set_editmesh_callbacks(