Cleanup: correct wireframe xray flag name
[blender.git] / source / blender / editors / space_view3d / view3d_edit.c
index 1ee572211c0229f481c810193a10ada79bdc5e4b..6e12091cf75f697c674da4ad82dd4b2167d5285f 100644 (file)
@@ -5204,7 +5204,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_BONE;
+      v3d->shading.flag ^= V3D_SHADING_XRAY_WIREFRAME;
     }
     else {
       v3d->shading.flag ^= V3D_SHADING_XRAY;