Renaming: sl > scene_layer
[blender.git] / source / blender / editors / armature / armature_select.c
index b78adba408c13a3ede5d4ba65f9dc7147291d15b..8db1cb7d6c073268e3b73d1f513e742d3dc3f983 100644 (file)
@@ -180,7 +180,7 @@ void *get_nearest_bone(bContext *C, const int xy[2], bool findunsel)
        hits = view3d_opengl_select(&vc, buffer, MAXPICKBUF, &rect, VIEW3D_SELECT_PICK_NEAREST);
 
        if (hits > 0)
-               return get_bone_from_selectbuffer(vc.scene, vc.sl->basact, buffer, hits, findunsel, true);
+               return get_bone_from_selectbuffer(vc.scene, vc.scene_layer->basact, buffer, hits, findunsel, true);
        
        return NULL;
 }