Renaming: sl > scene_layer
[blender.git] / source / blender / editors / curve / editcurve.c
index 09dcdfc35bd900f572435f98488317e4cd02f3ac..57805f92c8a199fbb8eecd0f63cc78aba860f199 100644 (file)
@@ -5015,7 +5015,7 @@ static int add_vertex_invoke(bContext *C, wmOperator *op, const wmEvent *event)
                        const float mval[2] = {UNPACK2(event->mval)};
 
                        struct SnapObjectContext *snap_context = ED_transform_snap_object_context_create_view3d(
-                               CTX_data_main(C), vc.scene, vc.sl, 0,
+                               CTX_data_main(C), vc.scene, vc.scene_layer, 0,
                                vc.ar, vc.v3d);
 
                        ED_transform_snap_object_project_view3d_mixed(