Cleanup: rename bone-select to xray
[blender.git] / source / blender / editors / space_view3d / view3d_edit.c
index c94aab1a3c1cae056175eaa46e0f156521f54f04..5f0ce77703d505e7813dc9b7988f85213f3c7af5 100644 (file)
@@ -4942,7 +4942,7 @@ static int toggle_xray_exec(bContext *C, wmOperator *op)
                        ELEM(v3d->shading.type, OB_WIRE, OB_SOLID));
 
                if (v3d->shading.type == OB_WIRE) {
-                       v3d->shading.flag ^= V3D_SHADING_XRAY_WIREFRAME;
+                       v3d->shading.flag ^= V3D_SHADING_XRAY_BONE;
                }
                else {
                        v3d->shading.flag ^= V3D_SHADING_XRAY;