Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/modes/pose_mode.c
| Show First 20 Lines • Show All 149 Lines • ▼ Show 20 Lines | for (int i = 0; i < 2; i++) { | ||||
| state = DRW_STATE_WRITE_COLOR | DRW_STATE_WRITE_DEPTH | DRW_STATE_DEPTH_LESS_EQUAL | | state = DRW_STATE_WRITE_COLOR | DRW_STATE_WRITE_DEPTH | DRW_STATE_DEPTH_LESS_EQUAL | | ||||
| DRW_STATE_BLEND_ALPHA; | DRW_STATE_BLEND_ALPHA; | ||||
| psl->relationship[i] = DRW_pass_create("Bone Relationship Pass", state); | psl->relationship[i] = DRW_pass_create("Bone Relationship Pass", state); | ||||
| ppd->custom_shapes[i] = BLI_ghash_ptr_new(__func__); | ppd->custom_shapes[i] = BLI_ghash_ptr_new(__func__); | ||||
| } | } | ||||
| { | { | ||||
| DRWState state = DRW_STATE_WRITE_COLOR | DRW_STATE_WIRE_SMOOTH | DRW_STATE_BLEND_ALPHA; | DRWState state = DRW_STATE_WRITE_COLOR | DRW_STATE_WIRE_SMOOTH | DRW_STATE_WIRE_MEDIUM | | ||||
| DRW_STATE_BLEND_ALPHA; | |||||
| psl->bone_axes = DRW_pass_create("Bone Axes Pass", state); | psl->bone_axes = DRW_pass_create("Bone Axes Pass", state); | ||||
| } | } | ||||
| { | { | ||||
| if (POSE_is_bone_selection_overlay_active()) { | if (POSE_is_bone_selection_overlay_active()) { | ||||
| const float alpha = (draw_ctx->object_mode & OB_MODE_WEIGHT_PAINT) ? | const float alpha = (draw_ctx->object_mode & OB_MODE_WEIGHT_PAINT) ? | ||||
| 0.0f : | 0.0f : | ||||
| v3d->overlay.xray_alpha_bone; | v3d->overlay.xray_alpha_bone; | ||||
| ▲ Show 20 Lines • Show All 189 Lines • Show Last 20 Lines | |||||