Refactor: anim, avoid function call in draw_bone_relations()

Avoid a call to `bone.as_posebone()`, as the result of that call is already
stored in the `pchan` variable.

No functional changes.
This commit is contained in:
Sybren A. Stüvel
2023-09-25 11:30:41 +02:00
parent 6875925efa
commit 08f1ec65c7

View File

@@ -1903,7 +1903,7 @@ static void draw_bone_relations(const ArmatureDrawContext *ctx,
if (ctx->draw_mode == ARM_DRAW_MODE_POSE) {
if (pchan->constflag & (PCHAN_HAS_IK | PCHAN_HAS_SPLINEIK)) {
if (boneflag & BONE_SELECTED) {
pchan_draw_ik_lines(ctx, bone.as_posebone(), !ctx->do_relations);
pchan_draw_ik_lines(ctx, pchan, !ctx->do_relations);
}
}
}