Renaming: sl > scene_layer
[blender.git] / source / blender / editors / transform / transform_snap.c
index a37ca83dcf1f24a5ac233152afbd0edada639735..18996de068bbd9e75e7059f6b21ec9ce052a8d93 100644 (file)
@@ -503,7 +503,7 @@ static void initSnappingMode(TransInfo *t)
 {
        ToolSettings *ts = t->settings;
        Object *obedit = t->obedit;
 {
        ToolSettings *ts = t->settings;
        Object *obedit = t->obedit;
-       SceneLayer *sl = t->sl;
+       SceneLayer *sl = t->scene_layer;
        Base *base_act = sl->basact;
 
        if (t->spacetype == SPACE_NODE) {
        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(
        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->sl, 0,
+                               G.main, t->scene, t->scene_layer, 0,
                                t->ar, t->view);
 
                        ED_transform_snap_object_context_set_editmesh_callbacks(
                                t->ar, t->view);
 
                        ED_transform_snap_object_context_set_editmesh_callbacks(