Fix T75820: Child bone head vanishes when connected parent is hidden

This commit is contained in:
Campbell Barton 2020-04-17 20:21:25 +10:00
parent 1b7ceb0aff
commit adc6659de5
Notes: blender-bot 2023-02-14 06:19:41 +01:00
Referenced by issue #75820, Child bone head disappears if connected parent bone is hidden
1 changed files with 4 additions and 4 deletions

View File

@ -1341,8 +1341,8 @@ static void draw_points(ArmatureDrawContext *ctx,
bone_hint_color_shade(col_hint_tail, (ctx->const_color) ? col_solid_tail : col_wire_tail);
/* Draw root point if we are not connected to our parent */
if (!(eBone ? (eBone->parent && (eBone->flag & BONE_CONNECTED)) :
(pchan->bone->parent && (pchan->bone->flag & BONE_CONNECTED)))) {
if (!(eBone ? (eBone->parent && (boneflag & BONE_CONNECTED)) :
(pchan->bone->parent && (boneflag & BONE_CONNECTED)))) {
if (select_id != -1) {
DRW_select_load_id(select_id | BONESEL_ROOT);
}
@ -1522,8 +1522,8 @@ static void draw_bone_line(ArmatureDrawContext *ctx,
}
/* Draw root point if we are not connected to our parent. */
if (!(eBone ? (eBone->parent && (eBone->flag & BONE_CONNECTED)) :
(pchan->bone->parent && (pchan->bone->flag & BONE_CONNECTED)))) {
if (!(eBone ? (eBone->parent && (boneflag & BONE_CONNECTED)) :
(pchan->bone->parent && (boneflag & BONE_CONNECTED)))) {
if (eBone) {
col_head = (eBone->flag & BONE_ROOTSEL) ? G_draw.block.colorVertexSelect : col_bone;