Merge branch 'master' into blender2.8
[blender.git] / source / blender / editors / armature / armature_select.c
index a3b4b342fa19b4013440875956f71658486a614a..a9acb41fcf66cb901a28b88b47340379f93d1114 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, true);
 
        if (hits > 0)
-               return get_bone_from_selectbuffer(vc.scene, vc.scene->basact, buffer, hits, findunsel, true);
+               return get_bone_from_selectbuffer(vc.scene, vc.sl->basact, buffer, hits, findunsel, true);
        
        return NULL;
 }