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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user