Fix #125542: Bone Stick selection color is not drawn

Caused by blender/blender@ef8f14f3d6

That commit removed too much code.  We still need the condition
for editbones and their selected tips.
The fix is to bring back that check and set the tail color accordingly.

Pull Request: https://projects.blender.org/blender/blender/pulls/125764
This commit is contained in:
Christoph Lendenfeld
2024-08-01 14:42:11 +02:00
committed by Christoph Lendenfeld
parent 13ceb73941
commit 06fab9f8f1

View File

@@ -2249,6 +2249,10 @@ class ArmatureBoneDrawStrategyLine : public ArmatureBoneDrawStrategy {
col_bone = col_head = col_tail = ctx->const_color;
}
else {
if (bone.is_editbone() && bone.flag() & BONE_TIPSEL) {
col_tail = &G_draw.block.color_vertex_select.x;
}
/* Draw root point if we are not connected to our parent. */
if (!(bone.has_parent() && (boneflag & BONE_CONNECTED))) {