Cleanup: rename bone-select to xray
[blender.git] / source / blender / draw / modes / pose_mode.c
index 81466f19128d2a72aa1679257ecad9f834aecd97..3c0a8048c9ea44c088e865c2060e666088b591a3 100644 (file)
@@ -147,7 +147,7 @@ static void POSE_cache_init(void *vedata)
 
        {
                if (POSE_is_bone_selection_overlay_active()) {
-                       const float alpha = (draw_ctx->object_mode & OB_MODE_WEIGHT_PAINT) ? 0.0f : v3d->overlay.bone_select_alpha;
+                       const float alpha = (draw_ctx->object_mode & OB_MODE_WEIGHT_PAINT) ? 0.0f : v3d->overlay.xray_alpha_bone;
                        copy_v4_fl4(ppd->blend_color, 0.0f, 0.0f, 0.0f, alpha);
                        copy_v4_fl4(ppd->blend_color_invert, 0.0f, 0.0f, 0.0f, pow(alpha, 4));
                        DRWShadingGroup *grp;